问题描述:
运行Qt程序,提示以下错误
QCoreApplication::applicationDirPath: Please instantiate the QApplication object first
QWidget: Must construct a QApplication before a QWidget
16:25:58: 程序异常结束。
原因:
程序以debug模式运行,却调用relase版本的dll
解决办法:
程序以release模式运行
问题描述:
运行Qt程序,提示以下错误
QCoreApplication::applicationDirPath: Please instantiate the QApplication object first
QWidget: Must construct a QApplication before a QWidget
16:25:58: 程序异常结束。
原因:
程序以debug模式运行,却调用relase版本的dll
解决办法:
程序以release模式运行