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. How to create .exe file of QT project
Forum Update on Monday, May 27th 2025

How to create .exe file of QT project

Scheduled Pinned Locked Moved Unsolved General and Desktop
designer launchexecutableqtcreatorlaunchimageiconset
13 Posts 7 Posters 9.7k Views
  • 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.
  • P Offline
    P Offline
    Pranit Patil
    wrote on 23 Jun 2018, 07:18 last edited by
    #1

    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.

    @Embedded Software Developer
    God has given you one face, and you make yourself another.

    M 1 Reply Last reply 23 Jun 2018, 07:36
    0
    • P Pranit Patil
      23 Jun 2018, 07:18

      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.

      M Offline
      M Offline
      MikhailG
      wrote on 23 Jun 2018, 07:36 last edited by
      #2

      @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

      P 1 Reply Last reply 23 Jun 2018, 07:40
      3
      • M MikhailG
        23 Jun 2018, 07:36

        @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

        P Offline
        P Offline
        Pranit Patil
        wrote on 23 Jun 2018, 07:40 last edited by
        #3

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

        Thank You

        @Embedded Software Developer
        God has given you one face, and you make yourself another.

        M 1 Reply Last reply 23 Jun 2018, 07:50
        0
        • P Pranit Patil
          23 Jun 2018, 07:40

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

          Thank You

          M Offline
          M Offline
          MikhailG
          wrote on 23 Jun 2018, 07:50 last edited by
          #4

          @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
          P T 2 Replies Last reply 23 Jun 2018, 08:44
          4
          • M MikhailG
            23 Jun 2018, 07:50

            @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
            P Offline
            P Offline
            Pranit Patil
            wrote on 23 Jun 2018, 08:44 last edited by
            #5

            @MikhailG thank u so much sir
            i will try.

            @Embedded Software Developer
            God has given you one face, and you make yourself another.

            T 1 Reply Last reply 29 Jul 2023, 11:25
            0
            • P Pranit Patil
              23 Jun 2018, 08:44

              @MikhailG thank u so much sir
              i will try.

              T Offline
              T Offline
              Tusharn
              wrote on 29 Jul 2023, 11:25 last edited by
              #6

              @Pranit-Patil

              had you create .exe file of your qt project and had you run application on another windows pc where qt creator not installed?

              S 1 Reply Last reply 29 Jul 2023, 11:32
              0
              • T Tusharn
                29 Jul 2023, 11:25

                @Pranit-Patil

                had you create .exe file of your qt project and had you run application on another windows pc where qt creator not installed?

                S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 29 Jul 2023, 11:32 last edited by
                #7

                @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.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                T 1 Reply Last reply 29 Jul 2023, 11:42
                0
                • S SGaist
                  29 Jul 2023, 11:32

                  @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.

                  T Offline
                  T Offline
                  Tusharn
                  wrote on 29 Jul 2023, 11:42 last edited by
                  #8

                  @SGaist
                  Can explain in brief how to prepare needed file to execute application on another computer running windows.

                  JonBJ S 2 Replies Last reply 29 Jul 2023, 11:45
                  0
                  • T Tusharn
                    29 Jul 2023, 11:42

                    @SGaist
                    Can explain in brief how to prepare needed file to execute application on another computer running windows.

                    JonBJ Offline
                    JonBJ Offline
                    JonB
                    wrote on 29 Jul 2023, 11:45 last edited by JonB
                    #9

                    @Tusharn You seemed to read through the reference @SGaist gave you very quickly, did you do so? What part of windeployqt are you asking about?

                    1 Reply Last reply
                    0
                    • T Tusharn
                      29 Jul 2023, 11:42

                      @SGaist
                      Can explain in brief how to prepare needed file to execute application on another computer running windows.

                      S Offline
                      S Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 29 Jul 2023, 11:47 last edited by
                      #10

                      @Tusharn @MikhailG already provided step by step instructions.

                      There's also the windeployqt documentation. Did you read it already ?

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      0
                      • M MikhailG
                        23 Jun 2018, 07:50

                        @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
                        T Offline
                        T Offline
                        Tusharn
                        wrote on 31 Jul 2023, 04:13 last edited by
                        #11

                        @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?

                        jsulmJ 1 Reply Last reply 31 Jul 2023, 05:20
                        0
                        • T Tusharn
                          31 Jul 2023, 04:13

                          @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?

                          jsulmJ Offline
                          jsulmJ Offline
                          jsulm
                          Lifetime Qt Champion
                          wrote on 31 Jul 2023, 05:20 last edited by
                          #12

                          @Tusharn said in How to create .exe file of QT project:

                          Is possible with this?

                          yes

                          https://forum.qt.io/topic/113070/qt-code-of-conduct

                          1 Reply Last reply
                          0
                          • S Offline
                            S Offline
                            SkillfulElectro
                            wrote on 8 Aug 2023, 20:07 last edited by
                            #13

                            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.exe

                            that 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"

                            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