Qtdesigner报错:This application failed to stat could not find or load the Qt platform plugin “windows“

简介: Qtdesigner报错:This application failed to stat could not find or load the Qt platform plugin “windows“

前段时间由于anaconda安装第三方库时总是有问题,就卸载重装了anaconda,结果后面在运行QtDesigner时,总是报下面这个错误:This application failed to stat could not find or load the Qt platform plugin “windows”

网上搜索了半天,主要就是环境变量的原因,但是按照网上教程添加了路径之后还是报这个错误。大部分写的都是添加上面图片中…\Pyqt5\Qt5\plugins这个路径,添加之后继续报同样错误,最终找到原因原来是plugins路径不对。

主要解决步骤如下:

右键我的电脑,打开属性,点击下图中的高级系统设置:

然后点击环境变量:

在系统变量中点击新建,添加如下变量:

变量名:QT_QPA_PLATFORM_PLUGIN_PATH

变量值:D:\Anaconda\pkgs\qt-5.6.2-vc14h6f8c307_12\Library\plugins

(变量值中的plugins路径依据你的实际情况修改,主要是qt-5.6.2-vc14h6f8c307_12这里会不一样。)

注意:路径是Anaconda\pkgs目录下qtXXX的plugins路径,不是之前报错的…\Pyqt5\Qt5\plugins这个路径

添加完环境变量之后,重启软件,再运行QtDesigner,运行正常,问题解决。

相关文章
|
3月前
|
监控 编译器 Windows
Qt5实现Windows平台串口通信
Qt5实现Windows平台串口通信
|
Windows
qt Error 20报错
这篇文章讨论了Qt开发中遇到的Error 20报错问题,并提供了将Windows服务中的NahimicService设置为手动运行或关闭的解决方案。
305 0
qt Error 20报错
|
编译器 Windows
plugin cannot be loaded for module “QtQuick“ && Could not load the Qt platform plugin “windows“
本文讨论了在Qt应用程序中遇到的平台插件加载问题,包括具体的错误信息、解决方案和参考链接。问题表现为无法加载“QtQuick”模块的插件,并且无法找到“windows”平台插件。解决方案是修改环境变量`Qt5_DIR`以使用正确的Qt版本和编译器环境。
1170 1
|
存储 Shell 开发工具
8-8|windows上Git报错
8-8|windows上Git报错
|
安全 Windows
windows系统中,通过LOAD到入csv格式的文件到neo4j中,如何写文件路径
windows系统中,通过LOAD到入csv格式的文件到neo4j中,如何写文件路径
304 0
|
Windows
【Windows】 Win10下报错:该文件没有与之关联的应用来执行该操作。请安装应用,若已经安装应用,请在“默认应用设置”页面中创建关联
【Windows】 Win10下报错:该文件没有与之关联的应用来执行该操作。请安装应用,若已经安装应用,请在“默认应用设置”页面中创建关联
1974 1
|
C++ Windows
vs2019 This application failed to start because it could not find or load the QT platform plugin
这篇文章介绍了在VS2019中解决QT程序运行时出现的“无法找到或加载QT平台插件”错误的步骤,通过将必要的DLL文件和插件目录复制到项目解决方案中解决了问题。
|
Shell PHP Windows
【Azure App Service】Web Job 报错 UNC paths are not supported. Defaulting to Windows directory.
【Azure App Service】Web Job 报错 UNC paths are not supported. Defaulting to Windows directory.
199 0
|
Java 开发工具 Spring
【Azure Spring Cloud】使用azure-spring-boot-starter-storage来上传文件报错: java.net.UnknownHostException: xxxxxxxx.blob.core.windows.net: Name or service not known
【Azure Spring Cloud】使用azure-spring-boot-starter-storage来上传文件报错: java.net.UnknownHostException: xxxxxxxx.blob.core.windows.net: Name or service not known
200 0
【Azure 应用服务】App Service 配置 Application Settings 访问Storage Account得到 could not be resolved: '*.file.core.windows.net'的报错。没有解析成对应中国区 Storage Account地址 *.file.core.chinacloudapi.cn
【Azure 应用服务】App Service 配置 Application Settings 访问Storage Account得到 could not be resolved: '*.file.core.windows.net'的报错。没有解析成对应中国区 Storage Account地址 *.file.core.chinacloudapi.cn
253 0