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. Qt could not find windows.dll
Forum Updated to NodeBB v4.3 + New Features

Qt could not find windows.dll

Scheduled Pinned Locked Moved General and Desktop
7 Posts 3 Posters 1.6k 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.
  • S Offline
    S Offline
    SebiSebi
    wrote on last edited by
    #1

    Hello!

    It's the first time I got this error while trying to run a program in release mode(from Qt Creator). If I take the .exe file and put it in a folder among all the necessary .dll it works.
    I searched the error on Google but I could not find anything linked to this error when running from Qt Creator. All the errors were after deploying the .exe file.

    How can i solve it?

    1 Reply Last reply
    0
    • T Offline
      T Offline
      thEClaw
      wrote on last edited by
      #2

      "windows" or "qwindows"? The latter one you have to deploy, it needs to be in platforms/qwindows.dll . The first one I don't know.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SebiSebi
        wrote on last edited by
        #3

        The message is the following : "The application failed to start beaucase it could not find or load the Qt platform plugin windows. Available platform plugins are: minima, offscreen".

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

          Hmm, perhaps your qwindows.dll is missing? As thEClaw says, check in your plugins\platforms directory (for example: C:\Qt\5.2.1\msvc2012\plugins\platforms) what DLLs you have there.

          1 Reply Last reply
          0
          • T Offline
            T Offline
            thEClaw
            wrote on last edited by
            #5

            And you have not yet tried to put the correct dll to platforms/qwindows.dll ? That is going to solve your problem, I think.

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SebiSebi
              wrote on last edited by
              #6

              I already have the qwindows,dll placed into platforms folder.

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

                Ok, maybe something is preventing qwindows.dll from loading?

                Check that you build for Release mode. You can turn on tracing of plugin loading, in QtCreator switch to the Projects mode, go down to Build Environment click details and add QT_DEBUG_PLUGINS set the value to 1.
                Start your app in QtCtreator and check Application Output.

                Also a good idea, try building a new empty Qt Widgets app, see if it runs.

                1 Reply Last reply
                0

                • Login

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