Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt6 Widgets Application not working, exit code -1073741511
Forum Updated to NodeBB v4.3 + New Features

Qt6 Widgets Application not working, exit code -1073741511

Scheduled Pinned Locked Moved Unsolved General and Desktop
35 Posts 6 Posters 1.1k Views 3 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.
  • C Offline
    C Offline
    Christian Ehrlicher
    Lifetime Qt Champion
    wrote on 2 May 2025, 14:38 last edited by
    #26

    As I already wrote - don't copy stuff around as it's wrong as it's missing things. Adjust your PATH var accordingly so that the Qt libs are properly found.

    Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
    Visit the Qt Academy at https://academy.qt.io/catalog

    H 1 Reply Last reply 2 May 2025, 14:50
    0
    • C Christian Ehrlicher
      2 May 2025, 14:38

      As I already wrote - don't copy stuff around as it's wrong as it's missing things. Adjust your PATH var accordingly so that the Qt libs are properly found.

      H Offline
      H Offline
      HQ2000
      wrote on 2 May 2025, 14:50 last edited by
      #27

      @Christian-Ehrlicher
      You mean I should just add their absolute paths to the PATH var?

      C 1 Reply Last reply 2 May 2025, 14:54
      0
      • H HQ2000
        2 May 2025, 14:50

        @Christian-Ehrlicher
        You mean I should just add their absolute paths to the PATH var?

        C Offline
        C Offline
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on 2 May 2025, 14:54 last edited by
        #28

        @HQ2000 said in Qt6 Widgets Application not working, exit code -1073741511:

        You mean I should just add their absolute paths to the PATH var?

        Again: add the path to the Qt dlls to the PATH env var.

        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
        Visit the Qt Academy at https://academy.qt.io/catalog

        H 1 Reply Last reply 2 May 2025, 15:47
        0
        • C Christian Ehrlicher
          2 May 2025, 14:54

          @HQ2000 said in Qt6 Widgets Application not working, exit code -1073741511:

          You mean I should just add their absolute paths to the PATH var?

          Again: add the path to the Qt dlls to the PATH env var.

          H Offline
          H Offline
          HQ2000
          wrote on 2 May 2025, 15:47 last edited by HQ2000 5 Feb 2025, 15:52
          #29

          @Christian-Ehrlicher
          Did it, nothing changed. (I restarted the project, of course)
          Same with deleting the associated environment vars

          @JonB
          It did. But it is not needed, I viewed it in the Dependency Walker

          C 1 Reply Last reply 2 May 2025, 15:58
          0
          • H HQ2000
            2 May 2025, 15:47

            @Christian-Ehrlicher
            Did it, nothing changed. (I restarted the project, of course)
            Same with deleting the associated environment vars

            @JonB
            It did. But it is not needed, I viewed it in the Dependency Walker

            C Offline
            C Offline
            Christian Ehrlicher
            Lifetime Qt Champion
            wrote on 2 May 2025, 15:58 last edited by
            #30

            @HQ2000 said in Qt6 Widgets Application not working, exit code -1073741511:

            Same with deleting the associated environment vars

            Then you would get an error about missing dlls. You have some wrong dlls around somewhere.
            Delete all dlls you copied around, don't copy dlls around in your CMakeLists.txt or anywhere else during your build, use a clean build dir, set the env var accordingly and start it from the command line where you also started the dependency tools from...

            Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
            Visit the Qt Academy at https://academy.qt.io/catalog

            H 1 Reply Last reply 2 May 2025, 16:15
            1
            • C Christian Ehrlicher
              2 May 2025, 15:58

              @HQ2000 said in Qt6 Widgets Application not working, exit code -1073741511:

              Same with deleting the associated environment vars

              Then you would get an error about missing dlls. You have some wrong dlls around somewhere.
              Delete all dlls you copied around, don't copy dlls around in your CMakeLists.txt or anywhere else during your build, use a clean build dir, set the env var accordingly and start it from the command line where you also started the dependency tools from...

              H Offline
              H Offline
              HQ2000
              wrote on 2 May 2025, 16:15 last edited by HQ2000 5 Feb 2025, 16:32
              #31

              @Christian-Ehrlicher
              I did not copy around any DLLs, this is a clean build dir (CLion pre-config)
              I will try it.

              Added the env vars:
              Screenshot 2025-05-02 183208.png

              Still get the Error messages that exactly these ones are missing...

              J C 2 Replies Last reply 2 May 2025, 16:52
              0
              • H HQ2000
                2 May 2025, 16:15

                @Christian-Ehrlicher
                I did not copy around any DLLs, this is a clean build dir (CLion pre-config)
                I will try it.

                Added the env vars:
                Screenshot 2025-05-02 183208.png

                Still get the Error messages that exactly these ones are missing...

                J Offline
                J Offline
                JonB
                wrote on 2 May 2025, 16:52 last edited by JonB 5 Feb 2025, 16:54
                #32

                @HQ2000 said in Qt6 Widgets Application not working, exit code -1073741511:

                Added the env vars:

                You write that followed by a list of DLLs. What do you mean you did to what environment variable? Also you no longer list the Qt DLLs?

                Still get the Error messages that exactly these ones are missing...

                If you mean the 4 in that list are reported missing then you have not set your PATH correctly.

                I am lost.

                1 Reply Last reply
                0
                • H HQ2000
                  2 May 2025, 16:15

                  @Christian-Ehrlicher
                  I did not copy around any DLLs, this is a clean build dir (CLion pre-config)
                  I will try it.

                  Added the env vars:
                  Screenshot 2025-05-02 183208.png

                  Still get the Error messages that exactly these ones are missing...

                  C Offline
                  C Offline
                  Christian Ehrlicher
                  Lifetime Qt Champion
                  wrote on 2 May 2025, 17:00 last edited by Christian Ehrlicher 5 Feb 2025, 17:01
                  #33

                  @HQ2000 said in Qt6 Widgets Application not working, exit code -1073741511:

                  Added the env vars:

                  Why do you add some dlls? Please do what we tell you... otherwise we can't (and won't) help anymore.
                  What's so hard to understand? Add the path to your Qt dlls to your PATH environment variable...

                  Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                  Visit the Qt Academy at https://academy.qt.io/catalog

                  H 1 Reply Last reply 2 May 2025, 17:29
                  0
                  • C Christian Ehrlicher
                    2 May 2025, 17:00

                    @HQ2000 said in Qt6 Widgets Application not working, exit code -1073741511:

                    Added the env vars:

                    Why do you add some dlls? Please do what we tell you... otherwise we can't (and won't) help anymore.
                    What's so hard to understand? Add the path to your Qt dlls to your PATH environment variable...

                    H Offline
                    H Offline
                    HQ2000
                    wrote on 2 May 2025, 17:29 last edited by HQ2000 5 Feb 2025, 17:32
                    #34

                    @Christian-Ehrlicher that's what i did..sorry I expressed it wrong
                    @JonB path var sorry, I don't list them because it does not show the error "xy.dll not found", I DID set them correctly, I copied their paths through the explorer

                    1 Reply Last reply
                    0
                    • H Offline
                      H Offline
                      HQ2000
                      wrote on 2 May 2025, 20:14 last edited by
                      #35

                      Sorry for all the inconvinience, I will try to express more exactly to avoid this kind of misunderstanding

                      1 Reply Last reply
                      0

                      35/35

                      2 May 2025, 20:14

                      • Login

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