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. Could not find or load the Qt platform plugin "windows"
Forum Updated to NodeBB v4.3 + New Features

Could not find or load the Qt platform plugin "windows"

Scheduled Pinned Locked Moved Solved Installation and Deployment
23 Posts 4 Posters 20.8k Views 2 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.
  • hskoglundH hskoglund

    Hmm, is your app a Widgets app? In your main.cpp, you're not doing anything fancy before QApplication a(argc, argv);?

    ZoltanZ Offline
    ZoltanZ Offline
    Zoltan
    wrote on last edited by
    #9

    @hskoglund said in Could not find or load the Qt platform plugin "windows":

    Hmm, is your app a Widgets app? In your main.cpp, you're not doing anything fancy before QApplication a(argc, argv);?

    QApplication a(argc, argv); is my first line. And the app is a Widgets app. But I am pretty sure that the problem is with the two VS runtime dll-s as Dependency Walker refers to them everywhere.

    ZoltanZ 1 Reply Last reply
    0
    • ZoltanZ Zoltan

      @hskoglund said in Could not find or load the Qt platform plugin "windows":

      Hmm, is your app a Widgets app? In your main.cpp, you're not doing anything fancy before QApplication a(argc, argv);?

      QApplication a(argc, argv); is my first line. And the app is a Widgets app. But I am pretty sure that the problem is with the two VS runtime dll-s as Dependency Walker refers to them everywhere.

      ZoltanZ Offline
      ZoltanZ Offline
      Zoltan
      wrote on last edited by
      #10

      @Zoltan said in Could not find or load the Qt platform plugin "windows":

      @hskoglund said in Could not find or load the Qt platform plugin "windows":

      Hmm, is your app a Widgets app? In your main.cpp, you're not doing anything fancy before QApplication a(argc, argv);?

      QApplication a(argc, argv); is my first line. And the app is a Widgets app. But I am pretty sure that the problem is with the two VS runtime dll-s as Dependency Walker refers to them everywhere.

      One additional info: as you can see in the linked screenshot, Dependency Walker says: "Modules with different CPU types were found". The GUI part is compiled as x86, while the VS part as x64. So I changed the kit to 32 bit VS, and the result is that now even inside QtCreator the same error occurs.

      1 Reply Last reply
      0
      • hskoglundH Offline
        hskoglundH Offline
        hskoglund
        wrote on last edited by
        #11

        Aha, well if you change the kit, please delete the stuff that windeployqt copied (actually the whole build folder). Then when you start a fresh build it should be fine.

        ZoltanZ 1 Reply Last reply
        0
        • hskoglundH hskoglund

          Aha, well if you change the kit, please delete the stuff that windeployqt copied (actually the whole build folder). Then when you start a fresh build it should be fine.

          ZoltanZ Offline
          ZoltanZ Offline
          Zoltan
          wrote on last edited by
          #12

          @hskoglund The same error unfortunately.

          ZoltanZ 1 Reply Last reply
          0
          • hskoglundH Offline
            hskoglundH Offline
            hskoglund
            wrote on last edited by
            #13

            Well your Qt Creator works (I mean you can start it), and that is a 32-bit MSVC2013 Release build, so your 32-bit MSVC2013-kit should work.

            Try creating a vanilla Widgets app from scratch, if it works launching from Qt Creator, try running windeployqt on it and see if it starts when you double-click it.

            1 Reply Last reply
            0
            • ZoltanZ Zoltan

              @hskoglund The same error unfortunately.

              ZoltanZ Offline
              ZoltanZ Offline
              Zoltan
              wrote on last edited by
              #14

              @Zoltan said in Could not find or load the Qt platform plugin "windows":

              @hskoglund The same error unfortunately.

              But in QtCreator,

              qmake.exe Z.pro -spec win32-msvc2013
              

              is written, which is strange, as I chose 64 bit VS compiler. How can I change it to 64 bit also?

              1 Reply Last reply
              0
              • hskoglundH Offline
                hskoglundH Offline
                hskoglund
                wrote on last edited by
                #15

                Try exiting Qt Creator, delete your .pro.user file and open your .pro file. Then you should be able to select the kit again.

                ZoltanZ 2 Replies Last reply
                1
                • hskoglundH hskoglund

                  Try exiting Qt Creator, delete your .pro.user file and open your .pro file. Then you should be able to select the kit again.

                  ZoltanZ Offline
                  ZoltanZ Offline
                  Zoltan
                  wrote on last edited by
                  #16

                  @hskoglund said in Could not find or load the Qt platform plugin "windows":

                  Try exiting Qt Creator, delete your .pro.user file and open your .pro file. Then you should be able to select the kit again.

                  I created a vanilla project from scratch and that worked for 32 bit. Then I deleted the .pro.user file and set the build to 32 bit VS. After running the windeployqt tool, it starts outside QtCreator. I am very grateful for your advices!

                  1 Reply Last reply
                  0
                  • hskoglundH hskoglund

                    Try exiting Qt Creator, delete your .pro.user file and open your .pro file. Then you should be able to select the kit again.

                    ZoltanZ Offline
                    ZoltanZ Offline
                    Zoltan
                    wrote on last edited by
                    #17

                    @hskoglund How can I accept your answer? I don't see the right icon.

                    kshegunovK 1 Reply Last reply
                    0
                    • hskoglundH Offline
                      hskoglundH Offline
                      hskoglund
                      wrote on last edited by hskoglund
                      #18

                      Huh? Don't know since the new forum style appeared. I think either click on the "Unsolved" rectangle on top, or click on the "totem pole" belonging to your first post?

                      1 Reply Last reply
                      0
                      • ZoltanZ Zoltan

                        @hskoglund How can I accept your answer? I don't see the right icon.

                        kshegunovK Offline
                        kshegunovK Offline
                        kshegunov
                        Moderators
                        wrote on last edited by
                        #19

                        @Zoltan
                        You can select a specific answer as the solution by clicking the three dots corresponding to it and selecting Mark this post as the correct answer. Incidentally this will also mark the thread as solved. You can give reputation points with the little arrows below the post (left of the three dots).

                        Read and abide by the Qt Code of Conduct

                        ZoltanZ 1 Reply Last reply
                        0
                        • kshegunovK kshegunov

                          @Zoltan
                          You can select a specific answer as the solution by clicking the three dots corresponding to it and selecting Mark this post as the correct answer. Incidentally this will also mark the thread as solved. You can give reputation points with the little arrows below the post (left of the three dots).

                          ZoltanZ Offline
                          ZoltanZ Offline
                          Zoltan
                          wrote on last edited by
                          #20

                          @kshegunov I could give reputation but clicking on the three dots didn't offer me to accept an answer (see this image: http://imgur.com/mPmTemH).

                          ZoltanZ kshegunovK 2 Replies Last reply
                          0
                          • ZoltanZ Zoltan

                            @kshegunov I could give reputation but clicking on the three dots didn't offer me to accept an answer (see this image: http://imgur.com/mPmTemH).

                            ZoltanZ Offline
                            ZoltanZ Offline
                            Zoltan
                            wrote on last edited by
                            #21

                            @Zoltan Ok, I had to click on the "Topic Tools" at the bottom.

                            1 Reply Last reply
                            0
                            • ZoltanZ Zoltan

                              @kshegunov I could give reputation but clicking on the three dots didn't offer me to accept an answer (see this image: http://imgur.com/mPmTemH).

                              kshegunovK Offline
                              kshegunovK Offline
                              kshegunov
                              Moderators
                              wrote on last edited by
                              #22

                              @Zoltan said in Could not find or load the Qt platform plugin "windows":

                              I could give reputation but clicking on the three dots didn't offer me to accept an answer

                              That's strange, but I'm glad you found the solution, anyway.

                              Read and abide by the Qt Code of Conduct

                              1 Reply Last reply
                              0
                              • SGaistS Offline
                                SGaistS Offline
                                SGaist
                                Lifetime Qt Champion
                                wrote on last edited by
                                #23

                                @kshegunov, it seems that this option disappear once the thread is marked as solved.

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

                                1 Reply Last reply
                                1

                                • Login

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