Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Forum Updated on Feb 6th

    Unsolved How to create .exe file of QT project

    General and Desktop
    designer launch executable qtcreator launchimage iconset
    2
    5
    6592
    Loading More Posts
    • 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 Patil
      Pranit Patil last edited by

      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.

      MikhailG 1 Reply Last reply Reply Quote 0
      • MikhailG
        MikhailG @Pranit Patil last edited by

        @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 Patil 1 Reply Last reply Reply Quote 3
        • Pranit Patil
          Pranit Patil @MikhailG last edited by

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

          MikhailG 1 Reply Last reply Reply Quote 0
          • MikhailG
            MikhailG @Pranit Patil last edited by

            @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 Patil 1 Reply Last reply Reply Quote 4
            • Pranit Patil
              Pranit Patil @MikhailG last edited by

              @MikhailG thank u so much sir
              i will try.

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

              1 Reply Last reply Reply Quote 0
              • First post
                Last post