vs2017-Qt错误“This application failed to start because it could not find or load the Qt platform...“

vs2017-Qt错误“This application failed to start because it could not find or load the Qt platform plugin”

环境

vs2017+Qt5.9+qt-vsaddin-msvc2017-2.4.0

问题

使用Debug+x64编译运行没有问题,改为Release时出现了下面的错误
在这里插入图片描述

解决方法

exe输出目录(项目/x64/Release/)缺少了dll文件,缺少的文件依据项目不同而不同

①将Qt目录中的bin目录文件全部复制到Release文件夹
②vs2017中运行项目,再次报错,不要停止项目

在这里插入图片描述

③回到Release文件夹,右键空白处,撤回复制,提示有几个文件正在占用中,都点击跳过
④停止运行项目,重新生成运行,成功!

在这里插入图片描述

参考链接:Qt5.8.0运行显示This application failed to start because it could not find or load the Qt platform plugin

  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
About This Book, Unleash the power of Qt 5 with C++14Integrate useful third-party libraries such as OpenCVPackage and deploy your application on multiple platforms, Who This Book Is For, This book will appeal to developers and programmers who would like to build GUI-based applications. Knowledge of C++ is necessary and the basics of Qt would be helpful., What You Will Learn, Create stunning UIs with Qt Widget and Qt QuickDevelop powerful, cross-platform applications with the Qt frameworkDesign GUIs with the Qt Designer and build a library in it for UI previewHandle user interaction with the Qt signal/slot mechanism in C++Prepare a cross-platform project to host a third-party libraryBuild a Qt application using the OpenCV APIUse the Qt Animation framework to display stunning effectsDeploy mobile apps with Qt and embedded platforms, In Detail, Qt 5.7 is an application development framework that provides a great user experience and develops full-capability applications with Qt Widgets, QML, and even Qt 3D., This book will address challenges in successfully developing cross-platform applications with the Qt framework. Cross-platform development needs a well-organized project. Using this book, you will have a better understanding of the Qt framework and the tools to resolve serious issues such as linking, debugging, and multithreading. Your journey will start with the new Qt 5 features. Then you will explore different platforms and learn to tame them. Every chapter along the way is a logical step that you must take to master Qt. The journey will end in an application that has been tested and is ready to be shipped., Style and approach, This is an easy-to-follow yet comprehensive guide to building applications in Qt. Each chapter covers increasingly advanced topics, with subjects grouped according to their complexity as well as their usefulness. Packed with practical examples and explanations, Mastering Qt contains everything you need to take your applications to the next level.

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值