Cannot add qt version to qt visual studio plugin

1.7k Views Asked by At

I'm using Visual studio 2019 and I've added the Qt Visual Studio Tools plugin from the "Manage Extensions" window. I've installed the latest version 2.7.2.2.

When I try to add a Qt version, in Options->Qt->Versions, I'm able to add the Qt that I've installed (that I use with CMake etc, so I know that's working), and I save it.

enter image description here

When I save, close and reopen the same window, the version disappears, like the plugin is not able to save the configuration.

I'm not able to find any logs that tell me what did wrong, so:

  • Where can I find logs for checking the error when trying to add the Qt version?
  • Where the configuration should be stored?

If I know where the data are stored, I can try to add the configuration manually instead of using the GUI, hoping that it will fix the problem.

2

There are 2 best solutions below

1
run run chicken On

i came across the same error. Then if you look at the 'output' of VS when you click ok after setting the QT version, you may see the same error message saying that qt license is not found. Try download the license file from QT, rename it as .qt-license, and put it under c:/Users//

0
Benjamin Buch On

I had the same symptoms and the reason was an incomplete installation of Qt. I had unzipped the Qt directory from a ZIP archive and that had apparently broken without error message, so files were missing. Unpacking again with 7-Zip fixed the problem.