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. Qt program from linux to windows
Forum Update on Monday, May 27th 2025

Qt program from linux to windows

Scheduled Pinned Locked Moved Solved General and Desktop
9 Posts 3 Posters 2.1k 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.
  • I Offline
    I Offline
    isan
    wrote on 9 May 2016, 07:33 last edited by isan 5 Sept 2016, 13:57
    #1

    I have a qt gui program on ubuntu , I want to create .exe of program for windows,for install qt on windows with MinGW(without visual stadio) ,I see these
    link 1,link 2
    I confused witch one I should to do??
    program of desktop in qt for windows need compile or build??
    for create .exe need compile??

    1 Reply Last reply
    0
    • V Offline
      V Offline
      VRonin
      wrote on 9 May 2016, 07:59 last edited by
      #2

      You don't need to build the entire library yourself, there are pre-compiled binaries available here: https://www.qt.io/download-open-source/#section-2

      to build your project then you'll just need to call the usual qmake and mingw32-make instead of just make as on linux

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      0
      • I Offline
        I Offline
        isan
        wrote on 9 May 2016, 14:17 last edited by isan 5 Sept 2016, 14:19
        #3

        you mean I choose Qt Online Installers for windows
        , itself download library and MinGW of Qt and Qt creator

        1 Reply Last reply
        1
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 9 May 2016, 22:57 last edited by
          #4

          Hi,

          Yes:

          1. Install the Qt MinGW package (with the MinGW provided)
          2. Open your project with Qt Creator
          3. Build/run/test
          4. Prepare for deployment. For that use windeployqt

          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
          • I Offline
            I Offline
            isan
            wrote on 13 May 2016, 10:19 last edited by
            #5

            I download QT with MinGW for windows and I build ,run my project in Release mode .exe was make, I added .dll and platform folder to open myproject.exe in other PC it is open and work but with myproject.exe a was black window, why this window was open??how can I open myproject.exe without this window??

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 13 May 2016, 10:23 last edited by
              #6

              Any chance that you have CONFIG += console in your .pro file ?

              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
              1
              • I Offline
                I Offline
                isan
                wrote on 13 May 2016, 10:41 last edited by
                #7

                yes,I have CONFIG += console

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 13 May 2016, 12:42 last edited by
                  #8

                  Then remove it

                  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
                  2
                  • I Offline
                    I Offline
                    isan
                    wrote on 13 May 2016, 18:22 last edited by
                    #9

                    Tank you very much!!

                    1 Reply Last reply
                    0

                    2/9

                    9 May 2016, 07:59

                    topic:navigator.unread, 7
                    • Login

                    • Login or register to search.
                    2 out of 9
                    • First post
                      2/9
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups
                    • Search
                    • Get Qt Extensions
                    • Unsolved