App released with windeployqt not showing UI
-
I have released a windows app using windeployqt. It works everywhere except on one PC. On that PC (Windows 10 Pro) the app runs (I can see it from the Task Manager) but UI is not shown.
These are the steps I do to release the app:rmdir /S /Q install mkdir install copy "build\Desktop_Qt_5_14_2_MinGW_64_bit\Release\release\MyApp.exe" install C:\Qt\5.14.2\mingw73_64\bin\windeployqt.exe --qmldir qml install\MyApp.exe copy "C:\Qt\5.14.2\mingw73_64\bin\libgcc_s_seh-1.dll" install copy "C:\Qt\5.14.2\mingw73_64\bin\libstdc++-6.dll" install copy "C:\Qt\5.14.2\mingw73_64\bin\libwinpthread-1.dll" install pause
Am I missing something? Thank you
-
@Fausto01 Did you try to start the app from a terminal to see whether there are any warnings/errors?
You can also set QT_DEBUG_PLUGINS in terminal before starting your app to see whether and what problems you have with the plug-ins (https://doc.qt.io/qt-6/deployment-plugins.html). -
-
Hi,
One thing that is strange is your qmldir option. It should be pointed to your application sources where you store your QML files so that their dependencies are all deployed.
It looks a bit unrelated since you have your application showing on some machines but still, it would be better to fix it.
-
@Fausto01 said in App released with windeployqt not showing UI:
I've tried to set QT_DEBUG_PLUGINS=1 and run the application from terminal (even started as admin) but nothing has changed. I also checked the drivers and it is all updated. Any hint?
Windows GUI apps do not have a console by default, and therefore also do not write debug information to the console. Instead, it goes to the central 'debug buffer'. You can see the output of the buffer by a) launching your app in an IDE like Qt Creator, or b) run the standalone dbgview.exe.
(Caveat: Only one client should listen to the debug buffer at any given time on the whole machine.)
Try this, and setting QT_DEBUG_PLUGINS environment variable should really print you a lot of information.