Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Convert Qt project to Visual Studio with x64 build
Forum Updated to NodeBB v4.3 + New Features

Convert Qt project to Visual Studio with x64 build

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
7 Posts 3 Posters 1.3k 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.
  • Y Offline
    Y Offline
    YuriRzhanov
    wrote on last edited by
    #1

    Hi, I have a Qt project (.pro, etc.) and would like to convert it to Visual Studio project. Conversion creates x86 solution. How should I change .pro file so that the solution will be x64?

    Thank you,
    Yuri

    1 Reply Last reply
    0
    • Christian EhrlicherC Online
      Christian EhrlicherC Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @YuriRzhanov said in Convert Qt project to Visual Studio with x64 build:

      How should I change .pro file so that the solution will be x64?

      This has nothing to do with the pro file but with the Qt version / qmake - for x64 you need a 64bit Qt.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      Y 1 Reply Last reply
      2
      • Christian EhrlicherC Christian Ehrlicher

        @YuriRzhanov said in Convert Qt project to Visual Studio with x64 build:

        How should I change .pro file so that the solution will be x64?

        This has nothing to do with the pro file but with the Qt version / qmake - for x64 you need a 64bit Qt.

        Y Offline
        Y Offline
        YuriRzhanov
        wrote on last edited by
        #3

        @Christian-Ehrlicher But my Qt (5.11.2) is 64 bit: msvc2015_64.
        So if Visual Studio plugin has an ability to check machine type, it must recognize x64.

        1 Reply Last reply
        0
        • Christian EhrlicherC Online
          Christian EhrlicherC Online
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          When Qt is 64 bit the solution will also be created as 64bit. Especially when you create the solution with qmake on the 64bit vs command prompt.

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          Y 1 Reply Last reply
          0
          • Christian EhrlicherC Christian Ehrlicher

            When Qt is 64 bit the solution will also be created as 64bit. Especially when you create the solution with qmake on the 64bit vs command prompt.

            Y Offline
            Y Offline
            YuriRzhanov
            wrote on last edited by
            #5

            @Christian-Ehrlicher The Qt project is not mine. I just convert it to the environment I'm used to (Visual Studio). Hence I'm not using qmake (although VS may use it internally - I don't know how the conversion works). I can change projects from Win32 to x64 manually after the conversion, but this is tedious.

            Chris KawaC 1 Reply Last reply
            0
            • Christian EhrlicherC Online
              Christian EhrlicherC Online
              Christian Ehrlicher
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Without a qmake or cmake project file you have to do it manually.
              Never provide a vs solution as it's not portable (as you can see).

              Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
              Visit the Qt Academy at https://academy.qt.io/catalog

              1 Reply Last reply
              0
              • Y YuriRzhanov

                @Christian-Ehrlicher The Qt project is not mine. I just convert it to the environment I'm used to (Visual Studio). Hence I'm not using qmake (although VS may use it internally - I don't know how the conversion works). I can change projects from Win32 to x64 manually after the conversion, but this is tedious.

                Chris KawaC Offline
                Chris KawaC Offline
                Chris Kawa
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @YuriRzhanov I only have x64 Qt installed and conversion produces only x64 configs.
                Do you have multiple Qt packages installed (32 and 64 bit)? If so which is set as default in Qt VS Tools?

                1 Reply Last reply
                1

                • Login

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