Add latest QT to Visual Studio 2019

Bryan Kelly 316 Reputation points
2022-05-12T00:53:14.077+00:00

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++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,481 questions
{count} votes

5 answers

Sort by: Most helpful
  1. RLWA32 39,446 Reputation points
    2022-05-12T10:55:03.78+00:00

    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

    0 comments No comments

  2. Bryan Kelly 316 Reputation points
    2022-05-13T00:33:44.957+00:00

    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?


  3. Bryan Kelly 316 Reputation points
    2022-05-13T14:45:32.92+00:00

    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.

    0 comments No comments

  4. RLWA32 39,446 Reputation points
    2022-05-13T15:11:03.04+00:00

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

    0 comments No comments

  5. Bryan Kelly 316 Reputation points
    2022-05-14T00:55:46.34+00:00

    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?

    0 comments No comments