Professional Documents
Culture Documents
PUBLIC
Stack Overflow
Tags
Application failed to start because it could Ask Question
Users
not find or load the QT platform plugin
Jobs
“windows”
Teams
I have looked through all of the
Q&A for work
questions that appear to be related on
21 stack overflow, and none of the
Learn More
solutions seem to help me.
I get:
12 Answers
QCoreApplication::addLibraryPath("./");
[Paths]
Libraries=../lib/qtcreator
Plugins=plugins
Imports=imports
Qml2Imports=qml
c:\Qt\Qt5.2.1\5.2.1\msvc2010_opengl\bin\windeployqt
Qt5Core.dll, Qt5Gui.dll,
Qt5Widgets.dll and a "platforms"
directory with qminimal.dll,
qoffscreen.dll, qwindows.dll.
By using our site, you acknowledge that you have read and understand our Cookie Policy, Privacy Policy, and our Terms of Service.
I hope this will help someone
1. I install Qt to c:\Qt\...
2. I develop an app and deploy it
correctly somewhere else.
3. It runs on any computer properly
because it includes qwindows.dll
in a subdirectory.
4. I upgrade my local Qt to a new
version.
5. I try to run my app again.
[Paths]
Plugins=.
QCoreApplication::addLibraryPath("<yourpath>"
By using our site, you acknowledge that you have read and understand our Cookie Policy, Privacy Policy, and our Terms of Service.
For me, I needed to set
QT_QPA_PLATFORM_PLUGIN_PATH to the
platforms directory and then it worked.
1
For what it's worth, this solution was
also mentioned on GitHub.
• Qt5Core.dll
• Qt5Widgets.dll
• etc
Where:
By using our site, you acknowledge that you have read and understand our Cookie Policy, Privacy Policy, and our Terms of Service.
protected by Community ♦ Oct 30
'16 at 12:43
Thank you for your interest in this
question. Because it has attracted low-
quality or spam answers that had to be
removed, posting an answer now
requires 10 reputation on this site (the
association bonus does not count).
By using our site, you acknowledge that you have read and understand our Cookie Policy, Privacy Policy, and our Terms of Service.