异常:This application failed to start because it could not find or load the Qt platform plugin "windows"

 

 

解决步骤:

第一步:检查我们是否已经将windows.lib和Qt5PlatformSupport.lib这两个库链接,如果没有链接,我们需要先链接;

第二步:如果发现第一步还是没能解决问题,我们就需要将#include <QtPlugin> Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin) 加到main函数开头,到了这一步,一般都能解决问题

 

posted on 2017-04-17 13:37  阿兴的平凡世界  阅读(405)  评论(0)    收藏  举报

导航