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 --release

    C:\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



  • @MikhailG Sorry sir but I couldnt understand how to use windeploy.qt...!
    can you explore step by step ?

    Thank You



  • @Pranit-Patil

    1. 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)
    2. Determine what project you want to deploy
    3. Determine destination a folder where all dependent dlls will be copied
    4. Determine where .exe file is located
    5. 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


  • @MikhailG thank u so much sir
    i will try.



Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.