Qt程序在其他电脑上运行时提示:couldnot find or add the Qt platform plugin:windows

使用Qt发布项目时,需要将对应缺少的库文件(dll)拷到对应的软件目录下
除会报错的文件外,需要注意libEGL.dll、libGLESv2,qwindows.dll需要放到platforms下。
如果这样启动软件时还是提示无法加载platform plugins,可以在程序目录下新建qt.conf配置文件,内容: [Paths] plugins = ./plugins
然后将对应编译器的插件plugins文件夹中和对应的platforms拷贝到应用程序目录下
程序运行时还是用了plugins/image前缀文件夹下的很多dll
代码中使用addlibpath只能解决其他插件文件夹下的dll,对于qwindows.dll,还是会使用默认安装的路径不知道为什么?
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
qt.qpa.plugin: Could not find the Qt platform plugin "windows"错误是指在运行Qt应用程序时,无法找到名为"windows"的Qt平台插件。这种错误通常会导致应用程序无法启动。要解决这个问题,可以尝试重新安装应用程序以修复可能的插件丢失或损坏问题。 另外,如果您在Ubuntu 18.04下遇到了类似的错误,可以参考引用中提到的解决方案。该方案主要针对解决Qt出现qt.qpa.plugin:Could not load the Qt platform plugin "xcb"问题,但也可能适用于其他类似的插件问题。建议您仔细阅读引用中的详细解决办法,以便正确解决您遇到的问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [qt.qpa.plugin: Could not find the Qt platform pluginwindows“ in ““ This application failed to ...](https://blog.csdn.net/aoxuestudy/article/details/125001365)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] - *2* [qt.qpa.plugin: Could not find the Qt platform plugin “xcb“ in ““ 详细解决办法](https://blog.csdn.net/qq_45983373/article/details/127547496)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] - *3* [Ubuntu18.04下解决Qt出现qt.qpa.plugin:Could not load the Qt platform plugin “xcb“问题](https://download.csdn.net/download/weixin_38695061/12841039)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值