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 Tools and Versions & MSVC 2019
Forum Updated to NodeBB v4.3 + New Features

Qt Tools and Versions & MSVC 2019

Scheduled Pinned Locked Moved Unsolved General and Desktop
39 Posts 9 Posters 58.8k 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.
  • Pradeep P NP Pradeep P N

    @aha_1980
    Its Qt 5.9.2 - Opensource for Windows x86 and i did select the msvc 2017 while installing.

    aha_1980A Offline
    aha_1980A Offline
    aha_1980
    Lifetime Qt Champion
    wrote on last edited by
    #8

    @Pradeep-P-N I did ask about the Creator version, not the Qt version.

    MSVC 2019 is quite new and I'm unsure which Creator version fully supports it.

    Qt has to stay free or it will die.

    Pradeep P NP 1 Reply Last reply
    1
    • aha_1980A aha_1980

      @Pradeep-P-N I did ask about the Creator version, not the Qt version.

      MSVC 2019 is quite new and I'm unsure which Creator version fully supports it.

      Pradeep P NP Offline
      Pradeep P NP Offline
      Pradeep P N
      wrote on last edited by
      #9

      @aha_1980
      Oops, Qt Creator 4.4.1

      Hmm, in that case is there any other possibility of getting it working ?

      Pradeep Nimbalkar.
      Upvote the answer(s) that helped you to solve the issue...
      Keep code clean.

      aha_1980A 1 Reply Last reply
      0
      • Pradeep P NP Pradeep P N

        @aha_1980
        Oops, Qt Creator 4.4.1

        Hmm, in that case is there any other possibility of getting it working ?

        aha_1980A Offline
        aha_1980A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on last edited by
        #10

        @Pradeep-P-N

        I'd recommend you to upgrade to 4.9.1 first. there is also a beta of 4.10 released today, which could be worth a try.

        Up to now, Creator needs to auto detect your MSVC compiler to be able to use it. Where did you install MSVC?

        Qt has to stay free or it will die.

        JKSHJ Pradeep P NP 2 Replies Last reply
        3
        • aha_1980A aha_1980

          @Pradeep-P-N

          I'd recommend you to upgrade to 4.9.1 first. there is also a beta of 4.10 released today, which could be worth a try.

          Up to now, Creator needs to auto detect your MSVC compiler to be able to use it. Where did you install MSVC?

          JKSHJ Offline
          JKSHJ Offline
          JKSH
          Moderators
          wrote on last edited by JKSH
          #11

          @aha_1980 said in Qt Tools and Versions & MSVC 2019:

          Up to now, Creator needs to auto detect your MSVC compiler to be able to use it. Where did you install MSVC?

          If MSVC was installed into the default location, the latest version of Qt Creator might be able to auto-detect it.

          Failing that, try adding the compiler manually: https://doc.qt.io/qtcreator/creator-tool-chains.html [EDIT: The MSVC compiler can't be added manually as of Qt Creator 4.9.1 -- JKSH]

          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

          aha_1980A 1 Reply Last reply
          2
          • JKSHJ JKSH

            @aha_1980 said in Qt Tools and Versions & MSVC 2019:

            Up to now, Creator needs to auto detect your MSVC compiler to be able to use it. Where did you install MSVC?

            If MSVC was installed into the default location, the latest version of Qt Creator might be able to auto-detect it.

            Failing that, try adding the compiler manually: https://doc.qt.io/qtcreator/creator-tool-chains.html [EDIT: The MSVC compiler can't be added manually as of Qt Creator 4.9.1 -- JKSH]

            aha_1980A Offline
            aha_1980A Offline
            aha_1980
            Lifetime Qt Champion
            wrote on last edited by
            #12

            @JKSH

            Failing that, try adding the compiler manually: https://doc.qt.io/qtcreator/creator-tool-chains.html

            AFAIK, it has to be auto-detected for now (in contrast to e.g. gcc, which can be added manually). That may change in future, IIRC.

            Qt has to stay free or it will die.

            JKSHJ 1 Reply Last reply
            1
            • Pradeep P NP Pradeep P N

              Hi @JKSH

              I did configure Qt 5.9.2 with winrt_x86_msvc2017 in the MSVC 2019.

              0_1561004815353_5fa1340c-8146-4a36-aecd-76fadda23c7b-image.png

              Also MSVC is not detected in Qt (Compiler is not available for MSVC)

              0_1561005143448_118f1c00-534c-443d-8637-4f5c009dae77-image.png

              I am new to MSVC so please guide me.

              Thank you.

              VRoninV Offline
              VRoninV Offline
              VRonin
              wrote on last edited by
              #13

              @Pradeep-P-N said in Qt Tools and Versions & MSVC 2019:

              did configure Qt 5.9.2 with winrt_x86_msvc2017

              WinRT is not windows. You just installed/configured the wrong Qt

              "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

              Pradeep P NP 1 Reply Last reply
              1
              • Vinod KuntojiV Offline
                Vinod KuntojiV Offline
                Vinod Kuntoji
                wrote on last edited by
                #14

                @Pradeep-P-N
                Install visual studio, Qt will auto detect the msvc coompiler.

                C++, Qt, Qt Quick Developer,
                PthinkS, Bangalore

                1 Reply Last reply
                0
                • aha_1980A aha_1980

                  @JKSH

                  Failing that, try adding the compiler manually: https://doc.qt.io/qtcreator/creator-tool-chains.html

                  AFAIK, it has to be auto-detected for now (in contrast to e.g. gcc, which can be added manually). That may change in future, IIRC.

                  JKSHJ Offline
                  JKSHJ Offline
                  JKSH
                  Moderators
                  wrote on last edited by
                  #15

                  @aha_1980 said in Qt Tools and Versions & MSVC 2019:

                  AFAIK, it has to be auto-detected for now (in contrast to e.g. gcc, which can be added manually). That may change in future, IIRC.

                  Ah, you're right.

                  Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                  1 Reply Last reply
                  0
                  • VRoninV VRonin

                    @Pradeep-P-N said in Qt Tools and Versions & MSVC 2019:

                    did configure Qt 5.9.2 with winrt_x86_msvc2017

                    WinRT is not windows. You just installed/configured the wrong Qt

                    Pradeep P NP Offline
                    Pradeep P NP Offline
                    Pradeep P N
                    wrote on last edited by
                    #16

                    Hi @VRonin
                    Can you explain a bit, What you mean by wrong Qt ?
                    AFAIK, all Qt should support MSVC right ? please correct me if i am wrong.

                    Pradeep Nimbalkar.
                    Upvote the answer(s) that helped you to solve the issue...
                    Keep code clean.

                    1 Reply Last reply
                    0
                    • aha_1980A aha_1980

                      @Pradeep-P-N

                      I'd recommend you to upgrade to 4.9.1 first. there is also a beta of 4.10 released today, which could be worth a try.

                      Up to now, Creator needs to auto detect your MSVC compiler to be able to use it. Where did you install MSVC?

                      Pradeep P NP Offline
                      Pradeep P NP Offline
                      Pradeep P N
                      wrote on last edited by Pradeep P N
                      #17

                      Hi @aha_1980 @JKSH

                      I can try with latest Qt Creator but before that i wanted to try with Qt Creator 4.4.1
                      Because this could help & can give a solution also for others who would like to do it with lower versions of Qt Creators.

                      MSVC is installed in default Windows location, i dint modify it.
                      C:\Program Files (x86)\Microsoft Visual Studio\2019\Community

                      Pradeep Nimbalkar.
                      Upvote the answer(s) that helped you to solve the issue...
                      Keep code clean.

                      JKSHJ aha_1980A 2 Replies Last reply
                      0
                      • Pradeep P NP Pradeep P N

                        Hi @aha_1980 @JKSH

                        I can try with latest Qt Creator but before that i wanted to try with Qt Creator 4.4.1
                        Because this could help & can give a solution also for others who would like to do it with lower versions of Qt Creators.

                        MSVC is installed in default Windows location, i dint modify it.
                        C:\Program Files (x86)\Microsoft Visual Studio\2019\Community

                        JKSHJ Offline
                        JKSHJ Offline
                        JKSH
                        Moderators
                        wrote on last edited by
                        #18

                        @Pradeep-P-N said in Qt Tools and Versions & MSVC 2019:

                        Hi @aha_1980 @JKSH

                        I can try with latest Qt Creator but before that i wanted to try with Qt Creator 4.4.1
                        Because this could help & can give a solution also for others who would like to do it with lower versions of Qt Creators.

                        Qt Creator 4.4.1 was released almost 2 years before MSVC 2019. So, this combination is not officially supported.

                        MSVC is installed in default Windows location, i dint modify it.
                        C:\Program Files (x86)\Microsoft Visual Studio\2019\Community

                        OK, good.

                        Did you install the C++ compilers when you installed Visual Studio? These are not installed by default; you must select them during installation.

                        @Pradeep-P-N said in Qt Tools and Versions & MSVC 2019:

                        Can you explain a bit, What you mean by wrong Qt ?
                        AFAIK, all Qt should support MSVC right ? please correct me if i am wrong.

                        You installed the winrt version of Qt. Like I said before, this is for creating UWP/Metro apps. This is not for creating desktop applications.

                        The Desktop version is easier for you to use.

                        Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                        Pradeep P NP 1 Reply Last reply
                        4
                        • Pradeep P NP Pradeep P N

                          Hi @aha_1980 @JKSH

                          I can try with latest Qt Creator but before that i wanted to try with Qt Creator 4.4.1
                          Because this could help & can give a solution also for others who would like to do it with lower versions of Qt Creators.

                          MSVC is installed in default Windows location, i dint modify it.
                          C:\Program Files (x86)\Microsoft Visual Studio\2019\Community

                          aha_1980A Offline
                          aha_1980A Offline
                          aha_1980
                          Lifetime Qt Champion
                          wrote on last edited by
                          #19

                          @Pradeep-P-N The detection of MSVC compilers was overworked in some of the last Creator releases, so all versions up to 2017 are working out of the box.

                          With 2019 however, Microsoft changed the installation layout so you might encounter trouble. I have not used it myself so I can only tell what I've heard. You might also search this forum for MSVC2019 questions.

                          Qt has to stay free or it will die.

                          Pradeep P NP 1 Reply Last reply
                          4
                          • aha_1980A aha_1980

                            @Pradeep-P-N The detection of MSVC compilers was overworked in some of the last Creator releases, so all versions up to 2017 are working out of the box.

                            With 2019 however, Microsoft changed the installation layout so you might encounter trouble. I have not used it myself so I can only tell what I've heard. You might also search this forum for MSVC2019 questions.

                            Pradeep P NP Offline
                            Pradeep P NP Offline
                            Pradeep P N
                            wrote on last edited by
                            #20

                            @aha_1980
                            Thank you, sure i will check in MSVC forum.

                            Pradeep Nimbalkar.
                            Upvote the answer(s) that helped you to solve the issue...
                            Keep code clean.

                            1 Reply Last reply
                            0
                            • JKSHJ JKSH

                              @Pradeep-P-N said in Qt Tools and Versions & MSVC 2019:

                              Hi @aha_1980 @JKSH

                              I can try with latest Qt Creator but before that i wanted to try with Qt Creator 4.4.1
                              Because this could help & can give a solution also for others who would like to do it with lower versions of Qt Creators.

                              Qt Creator 4.4.1 was released almost 2 years before MSVC 2019. So, this combination is not officially supported.

                              MSVC is installed in default Windows location, i dint modify it.
                              C:\Program Files (x86)\Microsoft Visual Studio\2019\Community

                              OK, good.

                              Did you install the C++ compilers when you installed Visual Studio? These are not installed by default; you must select them during installation.

                              @Pradeep-P-N said in Qt Tools and Versions & MSVC 2019:

                              Can you explain a bit, What you mean by wrong Qt ?
                              AFAIK, all Qt should support MSVC right ? please correct me if i am wrong.

                              You installed the winrt version of Qt. Like I said before, this is for creating UWP/Metro apps. This is not for creating desktop applications.

                              The Desktop version is easier for you to use.

                              Pradeep P NP Offline
                              Pradeep P NP Offline
                              Pradeep P N
                              wrote on last edited by
                              #21

                              Hi @JKSH

                              AFAIK, the Qt releases now a days is not providing different installation for wintr as the earlier versions.
                              There is only single setup for Windows now right ?

                              • https://download.qt.io/archive/qt/5.9/5.9.2/
                              • https://download.qt.io/archive/qtcreator/4.3/4.3.0/

                              Yes i did install the C++ compilers by selecting them during installation.

                              Pradeep Nimbalkar.
                              Upvote the answer(s) that helped you to solve the issue...
                              Keep code clean.

                              aha_1980A 1 Reply Last reply
                              0
                              • Pradeep P NP Pradeep P N

                                Hi @JKSH

                                AFAIK, the Qt releases now a days is not providing different installation for wintr as the earlier versions.
                                There is only single setup for Windows now right ?

                                • https://download.qt.io/archive/qt/5.9/5.9.2/
                                • https://download.qt.io/archive/qtcreator/4.3/4.3.0/

                                Yes i did install the C++ compilers by selecting them during installation.

                                aha_1980A Offline
                                aha_1980A Offline
                                aha_1980
                                Lifetime Qt Champion
                                wrote on last edited by
                                #22

                                @Pradeep-P-N AFAIK the Windows offline installer is a single exe now, but still contains different Qt versions like MinGW, MSVC, WinRT, ...

                                Qt has to stay free or it will die.

                                Pradeep P NP 1 Reply Last reply
                                0
                                • aha_1980A aha_1980

                                  @Pradeep-P-N AFAIK the Windows offline installer is a single exe now, but still contains different Qt versions like MinGW, MSVC, WinRT, ...

                                  Pradeep P NP Offline
                                  Pradeep P NP Offline
                                  Pradeep P N
                                  wrote on last edited by
                                  #23

                                  @aha_1980
                                  Yup, from which i selected WinRT also while installing along with MinGW & Android.

                                  Pradeep Nimbalkar.
                                  Upvote the answer(s) that helped you to solve the issue...
                                  Keep code clean.

                                  aha_1980A 1 Reply Last reply
                                  0
                                  • Pradeep P NP Pradeep P N

                                    @aha_1980
                                    Yup, from which i selected WinRT also while installing along with MinGW & Android.

                                    aha_1980A Offline
                                    aha_1980A Offline
                                    aha_1980
                                    Lifetime Qt Champion
                                    wrote on last edited by
                                    #24

                                    @Pradeep-P-N

                                    Yup, from which i selected WinRT also while installing along with MinGW & Android.

                                    So can you please tell us what you really want to do? Desktop apps (= pure MSVC) or Metro apps (= MSVC WinRT). I'm a bit lost, and I think I'm not the only one.

                                    Qt has to stay free or it will die.

                                    Pradeep P NP 1 Reply Last reply
                                    1
                                    • aha_1980A aha_1980

                                      @Pradeep-P-N

                                      Yup, from which i selected WinRT also while installing along with MinGW & Android.

                                      So can you please tell us what you really want to do? Desktop apps (= pure MSVC) or Metro apps (= MSVC WinRT). I'm a bit lost, and I think I'm not the only one.

                                      Pradeep P NP Offline
                                      Pradeep P NP Offline
                                      Pradeep P N
                                      wrote on last edited by Pradeep P N
                                      #25

                                      @aha_1980
                                      This is Learning Purpose Only

                                      I want to explore and learn the MSVC with Qt. Not specific to anything as Desktop apps (= pure MSVC) or Metro apps (= MSVC WinRT)

                                      I just want to try and build the Qt App from below Options provided in MSVC 2019.

                                      0_1561107802089_05b58167-be19-4839-a9a3-958ceb01e0bb-image.png

                                      Pradeep Nimbalkar.
                                      Upvote the answer(s) that helped you to solve the issue...
                                      Keep code clean.

                                      JKSHJ 1 Reply Last reply
                                      0
                                      • Pradeep P NP Pradeep P N

                                        @aha_1980
                                        This is Learning Purpose Only

                                        I want to explore and learn the MSVC with Qt. Not specific to anything as Desktop apps (= pure MSVC) or Metro apps (= MSVC WinRT)

                                        I just want to try and build the Qt App from below Options provided in MSVC 2019.

                                        0_1561107802089_05b58167-be19-4839-a9a3-958ceb01e0bb-image.png

                                        JKSHJ Offline
                                        JKSHJ Offline
                                        JKSH
                                        Moderators
                                        wrote on last edited by
                                        #26

                                        @Pradeep-P-N said in Qt Tools and Versions & MSVC 2019:

                                        I want to explore and learn the MSVC with Qt. Not specific to anything as Desktop apps (= pure MSVC) or Metro apps (= MSVC WinRT)

                                        I just want to try and build the Qt App from below Options provided in MSVC 2019.

                                        So you want to use your Visual Studio IDE to build Qt apps?

                                        In that case, you don't need to use the Qt Creator IDE. Just click "Qt GUI Application" in your screenshot.

                                        Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                                        Pradeep P NP 1 Reply Last reply
                                        2
                                        • JKSHJ JKSH

                                          @Pradeep-P-N said in Qt Tools and Versions & MSVC 2019:

                                          I want to explore and learn the MSVC with Qt. Not specific to anything as Desktop apps (= pure MSVC) or Metro apps (= MSVC WinRT)

                                          I just want to try and build the Qt App from below Options provided in MSVC 2019.

                                          So you want to use your Visual Studio IDE to build Qt apps?

                                          In that case, you don't need to use the Qt Creator IDE. Just click "Qt GUI Application" in your screenshot.

                                          Pradeep P NP Offline
                                          Pradeep P NP Offline
                                          Pradeep P N
                                          wrote on last edited by
                                          #27

                                          Hi @JKSH ,

                                          Jup, I want to use VS IDE to build Qt.
                                          I did try "Qt GUI Application" by selection default modules

                                          • Core,
                                          • GUI,
                                          • Widgets,

                                          0_1561347512066_e8d8c864-97ca-4c42-9b97-2cf0a89b52e7-image.png

                                          And on "Next" i get
                                          0_1561347564399_bc368894-4dd5-4e86-a848-1059685bd1c4-image.png

                                          How to set the Object Reference ?

                                          Pradeep Nimbalkar.
                                          Upvote the answer(s) that helped you to solve the issue...
                                          Keep code clean.

                                          jsulmJ JKSHJ 2 Replies 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