App released with windeployqt not showing UI
-
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.
-
@Fausto01
You should not need to compile for Debug in order to get the diagnostic output from setting environment variableQT_DEBUG_PLUGINS=1
when you run your application. Are you sure you did this correctly before launching your program, so many people seem to get this wrong? -
@JonB this are the steps I've done:
- Open dbgview.exe (should I do something else?)
- Open a terminal in the installation folder of my application
- On the terminal -> "set QT_DEBUG_PLUGINS=1"
- On the terminal -> ./MyApp.exe
- Check if dbgview.exe has printed something
Is it correct?
-
Ok I've tried to create a file before and after the creation of QApplication. The file before QApplication in created, the file after is not created because the app stucks in the creation of QApplication (after the creation I have a return 0 but the app is running on task manager). Any hint?