我是靠谱客的博主 狂野水壶,这篇文章主要介绍qt.qpa.plugin: Could not find the Qt platform plugin “windows“ in ““,现在分享给大家,希望可以做个参考。
在 QApplication a(argc, argv); 之前设置环境变量
QByteArray qtdir = qgetenv("QTDIR");
/*QString strDir = "D:\Qt\myDebugQt\myDebugQt";*/
QString strPlatforms = qtdir + QString(R"(pluginsplatforms)");
qputenv("QT_QPA_PLATFORM_PLUGIN_PATH", strPlatforms.toLocal8Bit());
最后
以上就是狂野水壶最近收集整理的关于qt.qpa.plugin: Could not find the Qt platform plugin “windows“ in ““的全部内容,更多相关qt.qpa.plugin:内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复