no Qt plugin?
-
Heyya peops!
I am learning how to use Qt, so to see if all is well, I did the simplest program: just a button in a window. I execute the programm from Qt creator, it works fine. Then I try launching the .exe. I get the error telling me about missing .dll files, so I copy the ones each error asks for. I launch and I get this error:
This application failed to start because no Qt platform plugin could be initialized.
I then try launching it from Qt creator again, and the same error occures. The only way for that error to stop is changing compiler, but then I try the .exe and back to square one. Please help, it is driving me mad.
Lots of Love to all of you!
Tell me if you need/want any more info!
-
Hi and welcome to devnet,
Use windeployqt. It will copy all required dlls as well as plugins to allow your application to start.
-
One thing to test: nuke your build folder and rebuild everything. Then use windeployqt.
Do you have several versions of Qt installed ? If so, are you sure you are using the correct version of windeployqt ?
-
There's a set of standard plugins and the rest comes from a map where the modules and their respective plugins are listed so depending on the libraries your application is linked against it will add the corresponding plugins.
-
Unless you added a new module, no.
-
You're welcome !
Since you ha e it working now, please mark the thread as closed using the "Topic Tools" button or the three doted menu beside the answer you deem correct so that other forum users may know a solution has been found :-)