it could not find or load the Qt platform plugin "windows"

本机环境:win 10 + Qt 5.6

问题:

在使用Qt5.6编写程序并release,文件夹中已经添加了必要的dll,但在其他机子上运行程序失败,出现了下面的情况:

解决办法:

在D:\Qt\5.6中进入mingw49_32文件夹(ps:具体路径看个人),将plugins\platforms整个目录复制exe执行文件所在的文件夹目录中,程序即可运行

原文地址:https://www.cnblogs.com/Geek-H/p/10626539.html

时间: 2024-08-03 15:29:44

it could not find or load the Qt platform plugin "windows"的相关文章

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

发生以上错误的Qt版本应该是Qt 5.0.0以上的版本吧. 出现标题错误的大致原因是:因为Qt是跨平台的库,需要依赖于相关的平台库.有个Platform的文件夹,里面有相关dll文件. references: http://www.cnblogs.com/naive/p/3568887.html http://stackoverflow.com/questions/20495620/qt-5-1-1-application-failed-to-start-because-platform-plu

[pyqt5]解决could not find or load the Qt platform plugin windows

在PyQt5+python3+pycharm开发环境配置时,遇到了This application failed to start because it could not find or load the Qt platform plugin "windows".的问题.导致无法通过pycharm运行Pyqt5的应用 出现该问题的原因是环境变量没有添加. 解决方法: 在环境变量中增加: QT_QPA_PLATFORM_PLUGIN_PATH C:\Python34\Lib\site-

解决Qt编译动态链接库could not find or load the Qt platform plugin "windows" in.问题

最近用Qt5做了一个项目的界面,在编译成可执行文件EXE之后,运行文件,提示: This application failed to start because it could not find or load the Qt platform plugin "windows"in "". Reinstalling the application may fix this problem. 查了很多资料,试了很过方法,后来发现将D:\Anaconda2\Librar

问题解决:it could not find or load the Qt platform plugin "windows"

问题:在使用Qt5.3.2编写程序并release,文件夹中已经添加了必要的dll,但在其他机子上运行程序失败,出现了下面的情况: 解决方法一:在C:\Qt\Qt5.3.2\5.3中进入mingw482_32文件夹,将plugins\platforms整个目录复制exe执行文件所在的文件夹目录中,程序即可运行. 以下是网上几个其他方法的总结: 解决方法二:复制你exe需要的qt插件,首先要在源程序中的main函数中加上QApplication::addLibraryPath("./plugins

This application failed to start because it could not find or load the Qt platform plugin "xcb".

1.  copy      libQt5DBus.so.5 2.  add    QT_PLUGIN_PATH blog.csdn.net/windows_nt/article/details/24205671 his application failed to start because it could not find or load the Qt platform plugin "xcb". 分类: Qt linux 2014-04-21 00:02 7793人阅读 评论(5)

pyqt5程序使用py2exe打包后运行时报找不到Qt platform plugin ‘windows’错误

pyqt5程序使用py2exe打包后运行时报找不到Qt platform plugin 'windows'错误 现象描述: 64位windows系统下直接将pyqt5的plugins下的platforms文件夹复制到exe相同目录即可,但在32位系统下一直报找不到Qt platform plugin 'windows'错误. 解决方案: 在exe同目录下新建plugins文件夹,然后将platfroms文件夹移到新建的文件夹下,同时修改main方法,添加以下代码: QApplication.ad

QT5 Failed to load platform plugin "windows" 终极解决方案 命令行问题

Failed to load platform plugin "windows" 这个错误在双击exe执行时不会出现,当传递命令行参数时出问题 ,解决方法: int main(int argc, char *argv[]) { Q_INIT_RESOURCE(rc); //解决库路径问题[email protected] QTextCodec *xcodec = QTextCodec::codecForLocale() ; QString exeDir = xcodec->toU

This application failed to start because no Qt platform plugin could be initialized.

错误: 当在pycharm执行pyqt的程序时,报如下错误: 原因: 因为环境变量里配置的路径对不上导致 解决方案: 将正确的plugins路径更新至环境变量中 原文地址:https://www.cnblogs.com/shiliye/p/12182574.html

cv2 Qt Platform plugin "cocoa" not found error

解决办法 https://github.com/ageitgey/face_recognition/issues/1041#issuecomment-582401795 resolved. If you are on a mac, make sure you install opencv-python-headless instead of opencv-python to avoid these errors. 原文地址:https://www.cnblogs.com/apuyuseng/p/