[SOLVED]My helloworld program can run in Qt Creator but can't run when I excecute the .exe file
-
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. -
Hello,
Have a look at http://qt-project.org/forums/viewthread/23658
-
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]
-
So what did you do to fix this problem?
...share, so the rest of us experiencing the same problem can get it working, too.
-
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 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
-
[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