How to create .exe file of QT project
-
Im New in Qt
How to create .exe file of QT project
with .exe file have Icon
with Launch shortcut on Deskstop immeditely.Thank you.
-
@Pranit-Patil you should use windeploy.qt
In qts command line run this
windeployqt.exe --qmldir C:\QtProjects\flux2 C:\QtProjects\build-flux2-Desktop_Qt_5_11_0_MSVC2015_32bit-Release\release\flux2.exe --dir C:\QtProjects\FluxUI --releaseC:\QtProjects\flux2 - source folder
C:\QtProjects\build-flux2-Desktop_Qt_5_11_0_MSVC2015_32bit-Release\release\flux2.exe - exe folder
C:\QtProjects\FluxUI - output folder -
- In your start menu go to qt folder an run something similar Qt 5.11.0 32-bit for Desktop (MSVC 2015) (command line icon)
- Determine what project you want to deploy
- Determine destination a folder where all dependent dlls will be copied
- Determine where .exe file is located
- run this windeployqt.exe --qmldir C:\Your\Project\Sources C:\Your\Project\Build\Folder\build-flux2-Desktop_Qt_5_11_0_MSVC2015_32bit-Release\release\flux2.exe --dir C:\Where\To\Copy\Dlls --release
-
had you create .exe file of your qt project and had you run application on another windows pc where qt creator not installed?
-
@Tusharn hi,
That's the goal of windeployqt, prepare everything needed to execute your application on another computer running Windows.
If you want an installer, then use something like the Qt Installer Framework.
-
@Tusharn @MikhailG already provided step by step instructions.
There's also the windeployqt documentation. Did you read it already ?
-
@MikhailG said in How to create .exe file of QT project:
n your start menu go to qt folder an run something similar Qt 5.11.0 32-bit for Desktop (MSVC 2015) (command line icon)
In my PC start menu ->Qt folder->Qt 6.5.1 MinGW 11.2.0 64 - bit (command line icon) is available. Is possible with this?
-
-
hello man so
first change ur build configuration to release or whatever then build your application and after that go to ur qt files -> bin > compiler u used > windeployqt.exethat file is what which will gather the .dll and etc files which ur app needs right click on the window and select powershell and then this command
.\windeployqt.exe "path of ur .exe file"