How to create a .exe file for my Qt based application

I wrote a program in Qt-Creator 1.3.1 and Qt 4.6.2 and don’t really figure out how to create a simple .exe file for the program I just wrote ... I would rather do it with Qt-Creator, if possible

+6
qt executable
source share
2 answers

In Qt Creator, when you create (Ctrl + B) your project, it always creates an .exe that starts when you start the application from Qt Creator (Ctrl + R or a large play button).

If you want to find this .exe, you should look in the folder where your .pro (project file) is located in the debug folder (or release, depending on your build configuration).

+2
source share

@Live is right. See the release or debug directory. But if you move the .exe file and want to execute it, you will have flaws about the DLL that are missing. You can find them from the Qt distribution. Put all the necessary DLLs next to your exe file, and you're done! DLL files will report your exe file at runtime!

0
source share

All Articles