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 10.1k 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.
  • 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.

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

              J Offline
              J 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?

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

                    J Offline
                    J 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