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. Unable to run Qt GUI application. Need Help.

Unable to run Qt GUI application. Need Help.

Scheduled Pinned Locked Moved General and Desktop
6 Posts 2 Posters 2.7k 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.
  • Q Offline
    Q Offline
    QUser_
    wrote on last edited by
    #1

    I created a very simple notepad using C++ and Qt Creator with the Qt libraries, I am able to run the program from within the QtCreater but as soon as I double click on the .exe it gives an error:

    @
    Debug Error!

    Program:
    ...SkyPad-Desktop_Qt_5_1_0_MSVC2010_32bit-Debug\debug\SkyPad.exe
    Module: 5.1.0
    File: kernel\qhuiapplication.cpp
    Line: 790

    Failed to load platform plugin "windows". Available platforms are:
    minimal
    offscreen
    windows

    (Press Retry to debug this application)
    @

    It gave some other errors about missing .dll files but I copied those from the QT instalation directory and now it only gives this error.

    How do I fix it?

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

      Hi and welcome to devnet,

      Have a look at the "deployment documentation":http://qt-project.org/doc/qt-5.0/qtdoc/deployment-windows.html

      You'll have all the information needed

      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
      0
      • Q Offline
        Q Offline
        QUser_
        wrote on last edited by
        #3

        I tried that but my program still gives the same error.

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

          Do you have something like this:

          folder\app.exe
          folder\platforms\qwindows.dll
          folder\plugins\imageformats\xxx.dll
          folder\plugins\other plugin folders\xx.dll
          folder\all_other_dlls.dll

          ?

          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
          0
          • Q Offline
            Q Offline
            QUser_
            wrote on last edited by
            #5

            In the Build folder? No.

            1 Reply Last reply
            0
            • Q Offline
              Q Offline
              QUser_
              wrote on last edited by
              #6

              I got it to work. I just copied all my Qt bin folder's dll into my app's folder.
              Thannks for the help

              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