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

Qt program from linux to windows

Scheduled Pinned Locked Moved Solved General and Desktop
9 Posts 3 Posters 2.1k Views 1 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.
  • I Offline
    I Offline
    isan
    wrote on last edited by isan
    #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
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on 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 last edited by isan
        #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
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on 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 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
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on 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 last edited by
                #7

                yes,I have CONFIG += console

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 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 last edited by
                    #9

                    Tank you very much!!

                    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