#include #include "GeneralTesting.h" #include "Singleton.h" int main(int argc, char* argv[]) { QApplication a(argc, argv); // 获取exe文件路径 Singleton::CreateInstance()->setExePath(a.applicationDirPath()); GeneralTesting* m_pGeneralTesting = new GeneralTesting(); m_pGeneralTesting->show(); return a.exec(); }