question

BryanKelly-4107 avatar image
0 Votes"
BryanKelly-4107 asked BryanKelly-4107 answered

Add latest QT to Visual Studio 2019

I found a video to install Qt. Opened VS 2019, select
Extensions -> Manage Extensions -> Online
In the search box enter Qt
It quickly finds Qt Visual Studio Tools
BUT: The description box contains: Version 2.8.1.6
That is a problem. The latest version is 6.3.0, 12 April 2022
Edit the search box: qt version 6, version 5, and some variations.
Nothing but version 2.
What can I do to get version 6? Do you have a favorite tutorial? Preferably text based rather than a video.
Thank you for your time.

c++
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.


Maybe 2.8.1.6 is the latest version of Qt Visual Studio Tools.


0 Votes 0 ·
RLWA32-6355 avatar image
0 Votes"
RLWA32-6355 answered

It would seem that the Qt Visual Studio Tools for VS2019 should be able to support installed versions of Qt. From the Qt VS tools 2.8.1 manual at Managing Qt Versions -

201425-qttools.png



qttools.png (124.7 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

BryanKelly-4107 avatar image
0 Votes"
BryanKelly-4107 answered RLWA32-6355 commented

There seems to be a chicken and egg problem. As noted in the OP, Visual Studio will not recognize that QT has a version 6.anything. I cannot do the install that way.
Go to the reply from RLWA32-6355. When I try to manage the version, it requires a path to be entered in the dialog.
I cannot get it to install so I don't have the full path. So I cannot manage the version.

I visited a few places and installed Qt 6.2.4
A video says go to VS Extensions -> QT VS tools -> Qt Versions
That presents a dialog to add a version. There are no options to choose from, just a free form box.
OK, so enter 6.2.4
That is probably wrong. What is the correct value.
Next step is to add a path.
A path to what? What directory or file in the Qt install directory needs to be entered here?



· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Did you carefully read all the steps in the Qt Visual Tools manual page for which I provided a link?

From the linked page -

201724-qttools2.png


0 Votes 0 ·
qttools2.png (48.8 KiB)
BryanKelly-4107 avatar image
0 Votes"
BryanKelly-4107 answered

Your post made the next step.
I do have a problem in that sometimes I look right at something and cannot recognize it. I say that because I don't see the link you provided. Please post that link again.
That attribute may fall under the categories of Asperger's and dyslexia.
Thank you for your time.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

RLWA32-6355 avatar image
0 Votes"
RLWA32-6355 answered

Again, the link that I previously posted is here ---- https://doc.qt.io/qtvstools/qtvstools-managing-qt-versions.html


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

BryanKelly-4107 avatar image
0 Votes"
BryanKelly-4107 answered

Start VS 2019, Extensions -> Qt VS Tools -> Qt Versions
Edit the dialog to be as follows:

201931-set-versions.jpg

Click OK, the wait icon shows for a bit and it closes.
Re-open the dialog and the version is blank. I did not even close Visual Studio. What must be done to get VS to remember these settings?



set-versions.jpg (54.6 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.