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. [SOLVED]My helloworld program can run in Qt Creator but can't run when I excecute the .exe file
Forum Updated to NodeBB v4.3 + New Features

[SOLVED]My helloworld program can run in Qt Creator but can't run when I excecute the .exe file

Scheduled Pinned Locked Moved General and Desktop
9 Posts 4 Posters 7.0k 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 Offline
    F Offline
    f_sweeks
    wrote on last edited by
    #1

    I built a GUI helloworld program, using Qt Creator 2.6.1 with Qt 5.0.0 on Windows 7.
    The program runs successfully when I click the "Run " button in Qt Creator. When I found the exe file in a directory like "helloqt-build-Desktop_Qt_5_0_0_MSVC2010_32bit_SDK-Release\release" and doubleclick it, it reports error like "missing Qt5Widgets.dll". So I copied needed .dll files from the directory of Qt libs to the same directory with the .exe file, and then when I doubleclick it, nothing happens.
    Why doesn't the program run when I doubleclick it? Could you tell me where am I wrong? Thanks a lot for your help.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #2

      Is your program referencing external files? QML? Images? Did you provide these as well?

      1 Reply Last reply
      0
      • JKSHJ Offline
        JKSHJ Offline
        JKSH
        Moderators
        wrote on last edited by
        #3

        Hello,

        Have a look at http://qt-project.org/forums/viewthread/23658

        Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

        1 Reply Last reply
        0
        • F Offline
          F Offline
          f_sweeks
          wrote on last edited by
          #4

          Solved, thank you for your help.
          [quote author="Andre" date="1359459833"]Is your program referencing external files? QML? Images? Did you provide these as well?[/quote]

          1 Reply Last reply
          0
          • F Offline
            F Offline
            f_sweeks
            wrote on last edited by
            #5

            It works. Thank you for your help.
            [quote author="JKSH" date="1359461852"]Hello,

            Have a look at http://qt-project.org/forums/viewthread/23658[/quote]

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

              So what did you do to fix this problem?

              ...share, so the rest of us experiencing the same problem can get it working, too.

              1 Reply Last reply
              0
              • S Offline
                S Offline
                starfire151
                wrote on last edited by
                #7

                So what did you do to fix this problem?

                ...share, so the rest of us experiencing the same problem can get it working, too.

                1 Reply Last reply
                0
                • JKSHJ Offline
                  JKSHJ Offline
                  JKSH
                  Moderators
                  wrote on last edited by
                  #8

                  [quote author="starfire151" date="1416687802"]So what did you do to fix this problem?

                  ...share, so the rest of us experiencing the same problem can get it working, too.[/quote]He opened the link and followed the instructions there.

                  But anyway, here is a more comprehensive set of instructions now: http://qt-project.org/wiki/Deploy_an_Application_on_Windows

                  Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                  1 Reply Last reply
                  0
                  • JKSHJ Offline
                    JKSHJ Offline
                    JKSH
                    Moderators
                    wrote on last edited by
                    #9

                    [quote author="starfire151" date="1416687802"]So what did you do to fix this problem?

                    ...share, so the rest of us experiencing the same problem can get it working, too.[/quote]He opened the link and followed the instructions there.

                    But anyway, here is a more comprehensive set of instructions now: http://qt-project.org/wiki/Deploy_an_Application_on_Windows

                    Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                    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