Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. App released with windeployqt not showing UI
Forum Updated to NodeBB v4.3 + New Features

App released with windeployqt not showing UI

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
30 Posts 7 Posters 4.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Fausto01
    7 Jul 2022, 11:44

    I tried to start the app from terminal but the console didn't print anything. I'll try to set QT_DEBUG_PLUGINS=1 and start the app from terminal as soon as I can. The strange thing is that on another PC with Windows 10 Pro works like a charm.

    J Offline
    J Offline
    jsulm
    Lifetime Qt Champion
    wrote on 7 Jul 2022, 11:47 last edited by
    #4

    @Fausto01 I would also check the anti-virus software - could be that it blocks the app.

    https://forum.qt.io/topic/113070/qt-code-of-conduct

    F 1 Reply Last reply 7 Jul 2022, 11:55
    0
    • J jsulm
      7 Jul 2022, 11:47

      @Fausto01 I would also check the anti-virus software - could be that it blocks the app.

      F Offline
      F Offline
      Fausto01
      wrote on 7 Jul 2022, 11:55 last edited by
      #5

      @jsulm I thought the same thing but no antivirus is installed on that machine. The app is running because I can see it from the Task Manager, but the UI doesn't want to come up.

      J 1 Reply Last reply 7 Jul 2022, 11:58
      0
      • F Fausto01
        7 Jul 2022, 11:55

        @jsulm I thought the same thing but no antivirus is installed on that machine. The app is running because I can see it from the Task Manager, but the UI doesn't want to come up.

        J Offline
        J Offline
        J.Hilk
        Moderators
        wrote on 7 Jul 2022, 11:58 last edited by
        #6

        @Fausto01 is it maybe a VM? thats always not working quite right

        also make sure that PC has the up to date graphics drivers installed


        Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


        Q: What's that?
        A: It's blue light.
        Q: What does it do?
        A: It turns blue.

        F 1 Reply Last reply 7 Jul 2022, 12:11
        0
        • J J.Hilk
          7 Jul 2022, 11:58

          @Fausto01 is it maybe a VM? thats always not working quite right

          also make sure that PC has the up to date graphics drivers installed

          F Offline
          F Offline
          Fausto01
          wrote on 7 Jul 2022, 12:11 last edited by
          #7

          @J-Hilk It's a native Windows 10 Pro, I'll try to update graphics drivers. Unfortunately I don't have the PC right now. I'll keep you updated. If you have other suggestions I will try

          1 Reply Last reply
          0
          • F Offline
            F Offline
            Fausto01
            wrote on 13 Jul 2022, 15:11 last edited by
            #8

            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?

            J K 2 Replies Last reply 13 Jul 2022, 15:25
            0
            • F Fausto01
              13 Jul 2022, 15:11

              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?

              J Offline
              J Offline
              JonB
              wrote on 13 Jul 2022, 15:25 last edited by
              #9

              @Fausto01
              You should have received a lot of diagnostic output in the terminal... ?

              F 1 Reply Last reply 13 Jul 2022, 15:30
              0
              • J JonB
                13 Jul 2022, 15:25

                @Fausto01
                You should have received a lot of diagnostic output in the terminal... ?

                F Offline
                F Offline
                Fausto01
                wrote on 13 Jul 2022, 15:30 last edited by
                #10

                @JonB I've also tried to set CONFIG+=console in the .pro but the only thing that is shown on the terminal is "QML debugging is enabled. Only use this in a safe environment.". Than the app remains alive but with no GUI

                1 Reply Last reply
                0
                • F Offline
                  F Offline
                  Fausto01
                  wrote on 13 Jul 2022, 19:40 last edited by
                  #11

                  Update: I've tried to create a file just after the creation of QApplication but the file was not created. Seems that the application stucks in the creation of QApplication, is it possible? I think I miss some dll but I don't know which one.

                  1 Reply Last reply
                  0
                  • F Offline
                    F Offline
                    Fausto01
                    wrote on 15 Jul 2022, 11:21 last edited by Fausto01
                    #12

                    Guys please I'm stucked and I need to resolve asap, has someone something to try? Thak you

                    1 Reply Last reply
                    0
                    • H Online
                      H Online
                      hskoglund
                      wrote on 15 Jul 2022, 13:33 last edited by
                      #13

                      Hi, the failing PC, is it a portable PC with Intel integrated graphics adapter?

                      F 1 Reply Last reply 15 Jul 2022, 14:57
                      0
                      • S Offline
                        S Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on 15 Jul 2022, 14:17 last edited by
                        #14

                        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.

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        F 1 Reply Last reply 15 Jul 2022, 15:08
                        0
                        • H hskoglund
                          15 Jul 2022, 13:33

                          Hi, the failing PC, is it a portable PC with Intel integrated graphics adapter?

                          F Offline
                          F Offline
                          Fausto01
                          wrote on 15 Jul 2022, 14:57 last edited by
                          #15

                          @hskoglund Yes it has no dedicated graphic board.

                          1 Reply Last reply
                          0
                          • S SGaist
                            15 Jul 2022, 14:17

                            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.

                            F Offline
                            F Offline
                            Fausto01
                            wrote on 15 Jul 2022, 15:08 last edited by
                            #16

                            @SGaist The batch file with the commands for releasing the app is at the same level of the qml directory, something like this:

                            └── Project/
                                ├── release.bat
                                ├── qml/
                                │   └── main.qml
                                └── src/
                                    └── main.cpp
                            
                            1 Reply Last reply
                            0
                            • H Online
                              H Online
                              hskoglund
                              wrote on 15 Jul 2022, 15:35 last edited by
                              #17

                              I had same problem using QML on a Windows 10 portable PC with an integrated Intel graphics adapter. The solution that worked for me was to upgrade the graphics driver to the latest version from Intel. maybe it will help you also.

                              F 1 Reply Last reply 15 Jul 2022, 16:11
                              0
                              • H hskoglund
                                15 Jul 2022, 15:35

                                I had same problem using QML on a Windows 10 portable PC with an integrated Intel graphics adapter. The solution that worked for me was to upgrade the graphics driver to the latest version from Intel. maybe it will help you also.

                                F Offline
                                F Offline
                                Fausto01
                                wrote on 15 Jul 2022, 16:11 last edited by
                                #18

                                @hskoglund Seems that it's already the newest version (from Windows Update)

                                1 Reply Last reply
                                0
                                • H Online
                                  H Online
                                  hskoglund
                                  wrote on 15 Jul 2022, 16:35 last edited by
                                  #19

                                  Windows Update didn't work for me, I had to go to the Intel website and fetch the driver there.

                                  1 Reply Last reply
                                  0
                                  • F Fausto01
                                    13 Jul 2022, 15:11

                                    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?

                                    K Offline
                                    K Offline
                                    kkoehne
                                    Moderators
                                    wrote on 16 Jul 2022, 05:45 last edited by
                                    #20

                                    @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.

                                    Director R&D, The Qt Company

                                    F 1 Reply Last reply 20 Jul 2022, 09:04
                                    2
                                    • F Offline
                                      F Offline
                                      Fausto01
                                      wrote on 16 Jul 2022, 10:48 last edited by
                                      #21

                                      Thank you guys, I'll try and give you an update asap

                                      1 Reply Last reply
                                      0
                                      • K kkoehne
                                        16 Jul 2022, 05:45

                                        @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.

                                        F Offline
                                        F Offline
                                        Fausto01
                                        wrote on 20 Jul 2022, 09:04 last edited by
                                        #22

                                        @kkoehne I've tried but nothing appears again. My application is compiled in release mode, do I have to build it in debug mode to see the output from dbgview?

                                        J 1 Reply Last reply 20 Jul 2022, 09:19
                                        0
                                        • F Fausto01
                                          20 Jul 2022, 09:04

                                          @kkoehne I've tried but nothing appears again. My application is compiled in release mode, do I have to build it in debug mode to see the output from dbgview?

                                          J Offline
                                          J Offline
                                          JonB
                                          wrote on 20 Jul 2022, 09:19 last edited by
                                          #23

                                          @Fausto01
                                          You should not need to compile for Debug in order to get the diagnostic output from setting environment variable QT_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?

                                          F 1 Reply Last reply 20 Jul 2022, 09:25
                                          0

                                          13/30

                                          15 Jul 2022, 13:33

                                          • Login

                                          • Login or register to search.
                                          13 out of 30
                                          • First post
                                            13/30
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups
                                          • Search
                                          • Get Qt Extensions
                                          • Unsolved