Qt Tools and Versions & MSVC 2019
-
@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.
-
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 said in Qt Tools and Versions & MSVC 2019:
How to set the Object Reference ?
That is not a configuration problem.
That is a .NET programming error. It means something is trying to deference a null object: https://stackoverflow.com/questions/4660142/what-is-a-nullreferenceexception-and-how-do-i-fix-it
Unfortunately, it doesn't look like there's an easy way to find out where that error occurs.
If you have a spare PC, I suggest you install the latest Visual Studio, install the latest Qt VS Tools, and install the latest Qt on it. Then see if it works.
-
@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.
-
@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.
Hi @jsulm thank you.
I was just trying. Yes i agree that version compatibility issues may come.
But my intention was to find the solution, so that it might help some one else also who can try with old Versions of Qt. -
@JKSH , @J-Hilk
Thank you for the support.
Sure i will check with the suggestions provided above. -
Hi @jsulm thank you.
I was just trying. Yes i agree that version compatibility issues may come.
But my intention was to find the solution, so that it might help some one else also who can try with old Versions of Qt.@Pradeep-P-N said in Qt Tools and Versions & MSVC 2019:
my intention was to find the solution, so that it might help some one else also who can try with old Versions of Qt.
Right now, you are experiencing lots of issues. We can't tell whether the issues are being caused by version incompatibilities or not.
I recommend you try to get it working with the latest versions first. After that, you can spend time trying to make it work with older versions.
-
@JKSH , @J-Hilk
Thank you for the support.
Sure i will check with the suggestions provided above.Hello! Also please note about this issue with
Qt
andMSVC2019
: https://bugreports.qt.io/browse/QTBUG-75280
It is still not fixed yet. For now it is better to useQt
withMSVC2017
. -
Hello! Also please note about this issue with
Qt
andMSVC2019
: https://bugreports.qt.io/browse/QTBUG-75280
It is still not fixed yet. For now it is better to useQt
withMSVC2017
.@Cobra91151
Thanks.
Jup, shifted toMSVC 2017
. -
@Pradeep-P-N said in Qt Tools and Versions & MSVC 2019:
Qt don't have the Kit for MSVC 2019
MSVC 2019 is binary compatible with MSVC 2017.
So, you can configure the kit to use the Qt libary for MSVC 2017 together with your MSVC 2019 compiler.
@JKSH Can you put this information (Qt msvc2017 is binary compatible with msvc2019 package) to a more prominent place on the Qt pages, e.g. the download section, to be visible for all people seeking the latest and greatest version of Qt for their compiler? I was looking for this kind of information at least 1 hour. Cheers, Volker
-
@JKSH Can you put this information (Qt msvc2017 is binary compatible with msvc2019 package) to a more prominent place on the Qt pages, e.g. the download section, to be visible for all people seeking the latest and greatest version of Qt for their compiler? I was looking for this kind of information at least 1 hour. Cheers, Volker
@volker said in Qt Tools and Versions & MSVC 2019:
Can you put this information (Qt msvc2017 is binary compatible with msvc2019 package) to a more prominent place on the Qt pages, e.g. the download section
I don't have access to the Qt website, sorry. Please submit your request to https://bugreports.qt.io (under "Qt Project Website")
The compatibility information comes from Microsoft directly: https://docs.microsoft.com/en-us/cpp/porting/binary-compat-2015-2017?view=vs-2019
-
@volker said in Qt Tools and Versions & MSVC 2019:
Can you put this information (Qt msvc2017 is binary compatible with msvc2019 package) to a more prominent place on the Qt pages, e.g. the download section
I don't have access to the Qt website, sorry. Please submit your request to https://bugreports.qt.io (under "Qt Project Website")
The compatibility information comes from Microsoft directly: https://docs.microsoft.com/en-us/cpp/porting/binary-compat-2015-2017?view=vs-2019
-
@JKSH Ah, now I see. I must have missed that fact when downloading/installing MSVC2019. Will file a request to the bug reports. Cheers, Volker