Qt Tools and Versions & MSVC 2019
-
@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.
@aha_1980
Oops, Qt Creator 4.4.1Hmm, in that case is there any other possibility of getting it working ?
-
@aha_1980
Oops, Qt Creator 4.4.1Hmm, in that case is there any other possibility of getting it working ?
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?
-
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?
@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_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]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.
-
Hi @JKSH
I did configure Qt 5.9.2 with winrt_x86_msvc2017 in the MSVC 2019.
Also MSVC is not detected in Qt (Compiler is not available for MSVC)
I am new to MSVC so please guide me.
Thank you.
@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-N
Install visual studio, Qt will auto detect the msvc coompiler. -
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.
@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.
-
@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
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. -
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?
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 -
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-P-N said in Qt Tools and Versions & MSVC 2019:
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\CommunityOK, 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.
-
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-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-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.
@aha_1980
Thank you, sure i will check in MSVC forum. -
@Pradeep-P-N said in Qt Tools and Versions & MSVC 2019:
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\CommunityOK, 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.
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 ?Yes i did install the C++ compilers by selecting them during installation.
-
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 ?Yes i did install the C++ compilers by selecting them during installation.
@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-N AFAIK the Windows offline installer is a single exe now, but still contains different Qt versions like MinGW, MSVC, WinRT, ...
@aha_1980
Yup, from which i selected WinRT also while installing along with MinGW & Android. -
@aha_1980
Yup, from which i selected WinRT also while installing along with MinGW & Android.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.
-
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.
@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.
-
@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.
@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-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.
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,
And on "Next" i get
How to set the Object Reference ?
-
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,
And on "Next" i get
How to set the Object Reference ?
@Pradeep-P-N Why did you install Qt 5.9.2 and not the latest stable version (5.12.3)? I'm not sure that old version is going to work with latest Visual Studio.