Unable to run Qt GUI application. Need Help.
-
I created a very simple notepad using C++ and Qt Creator with the Qt libraries, I am able to run the program from within the QtCreater but as soon as I double click on the .exe it gives an error:
@
Debug Error!Program:
...SkyPad-Desktop_Qt_5_1_0_MSVC2010_32bit-Debug\debug\SkyPad.exe
Module: 5.1.0
File: kernel\qhuiapplication.cpp
Line: 790Failed to load platform plugin "windows". Available platforms are:
minimal
offscreen
windows(Press Retry to debug this application)
@It gave some other errors about missing .dll files but I copied those from the QT instalation directory and now it only gives this error.
How do I fix it?
-
Hi and welcome to devnet,
Have a look at the "deployment documentation":http://qt-project.org/doc/qt-5.0/qtdoc/deployment-windows.html
You'll have all the information needed
-
I tried that but my program still gives the same error.
-
Do you have something like this:
folder\app.exe
folder\platforms\qwindows.dll
folder\plugins\imageformats\xxx.dll
folder\plugins\other plugin folders\xx.dll
folder\all_other_dlls.dll?
-
In the Build folder? No.
-
I got it to work. I just copied all my Qt bin folder's dll into my app's folder.
Thannks for the help