Unable to find or load the Qt platform plugin "windows" in a DLL
-
Hi,
I have created a communication dll, which is statically linked and I would like to have a systemtray icon.
My Icon appears fine in debug mode, but when i have compiled in static release mode it complains about "Unable to find or load the platform plugin".
I have tryed to link the platform plugin, but somehow it did'ent remove the issue.
Any ideas on how to proceedThanks
Henrik -
Hello Enrico,
set QT_DEBUG_PLUGINS=1
to debug the issue. (Use e.g. Dbgview.exe to display the debug output)Usually the problem is that the "platforms" folder isn ot on the same level as your application. (By default the "platforms" folder is in the plugins folder).
Another solution is to set:
set QT_QPA_PLATFORM_PLUGIN_PATH=.\plugins
(Assuming that your plugins folder is in your application directory)Best regards
Thomas -
Thanks
Not getting much closer, though. Thanks anyway :-)
QFactoryLoader::QFactoryLoader() ignoring "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3" since plugins are disabled in static builds This application failed to start because it could not find or load the Qt platform plugin "windows". Reinstalling the application may fix this problem.