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 Updated to NodeBB v4.3 + New Features

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 2 Watching
  • 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.
  • Pranit PatilP Offline
    Pranit PatilP Offline
    Pranit Patil
    wrote on 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.

    MikhailGM 1 Reply Last reply
    0
    • Pranit PatilP Pranit Patil

      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.

      MikhailGM Offline
      MikhailGM Offline
      MikhailG
      wrote on 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

      Pranit PatilP 1 Reply Last reply
      3
      • MikhailGM MikhailG

        @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

        Pranit PatilP Offline
        Pranit PatilP Offline
        Pranit Patil
        wrote on 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.

        MikhailGM 1 Reply Last reply
        0
        • Pranit PatilP Pranit Patil

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

          Thank You

          MikhailGM Offline
          MikhailGM Offline
          MikhailG
          wrote on 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
          Pranit PatilP T 2 Replies Last reply
          4
          • MikhailGM MikhailG

            @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
            Pranit PatilP Offline
            Pranit PatilP Offline
            Pranit Patil
            wrote on 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
            0
            • Pranit PatilP Pranit Patil

              @MikhailG thank u so much sir
              i will try.

              T Offline
              T Offline
              Tusharn
              wrote on 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?

              SGaistS 1 Reply Last reply
              0
              • T Tusharn

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

                SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on 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
                0
                • SGaistS SGaist

                  @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 last edited by
                  #8

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

                  JonBJ SGaistS 2 Replies Last reply
                  0
                  • T Tusharn

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

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

                      SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 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
                      • MikhailGM MikhailG

                        @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 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
                        0
                        • T Tusharn

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