Qt VS Tools does not work in Visual Studio 2022 - visual-studio

The Qt VS Tools extension does not work for me in VS 2022. I have Qt installed to my c drive, and when trying to add the version to the extension shown in the image below:
https://i.stack.imgur.com/TZ6yb.png
the tool loads for a good 10-20 seconds, crashes, and nothing has been changed

HOW TO ADD QT VERSION TO QT VS TOOLS
Click "+" button
Click at File Explorer icon on Path
Select C:\Qt\{The version of Qt you're using}\msvc2019_64\qmake.exe and open it
You're done! Click ok to comfirm it
CRASHED?
Maybe you had a very low-end PC, try install Visual Studio 2019.

Related

The options in "build task to run" aren't showed

PS:"When I tried to screen shot the menu above closes so I took a photo with my phone"
So I installed Visual Studio 2022 free version with the Game Development in C++ with Unreal option checked.
I installed the net sdk 3.1.
After that I installed the VS Code with C++ and Unreal Snippets extensions.
I changes the Source Code Editor in Unreal Engine with Visual Studio Code.
And it didn't work to select a "build task to run" version.
I tried to reinstall Visual Studio , the net sdk and the VS code.
I followed the tutorial again but no results.
What can I do?
-This is the log: https://github.com/JJPGdev/Log
-I use Windows 10.
You don't need to have both Visual Studio Code and Visual Studio 2022 installed in order to use Unreal Engine.
For Visual Studio 2022, make sure you have the C++ Profiling Tools and Windows 10 SDK (10.0.18362 or newer). To add these go to Tools->Get Tools and Features->Game Development with C++
To build/compile your code, the easiest way is to click the compile button in Unreal Engine.
In Unreal Engine 5 this button is located on the very bottom menu. If you get an error, try clicking the 3 dots next to the compile button. Then, uncheck Enable Live Coding and try to compile again.
In Unreal Engine 4 this button is located in the menu above the viewport.

How to update Visual Studio 2015?

I recently installed Microsoft Visual Studio community verion 2015 on my computer for educational purposes. However while installation I conservatively chose not to install the source files for C/C++. Is there any way to rectify this? There doesn't seem to be any update menu in Visual Studio where I can do this.
You can have Visual Studio check for any updates itself by going to Tools > Extensions & Updates > Updates > Product Updates.
You can install any of the custom components (Visual C++, Visual F#, others) later if you don’t select them during the initial setup, there have some methods to modify VS to select the custom components to update and you can have a look at the following:
Go to Control Panel—Programs and Features, right click the Visual Studio Community 2015 with updates and Change, it popups the VS installer windows and click Modify button, then you can find the option ‘Visual C++’ under Programming Languages and check it, click ‘Next’ button to install it like the following screenshot.
If you still store the installer file of the Visual Studio Community 2015 with update 3 on your computer, right click it and run it as administrator, click Modify button and you can find the same installer windows as the above, check the option ‘Visual C++’ to install it.

Is it possible to debug QML from Visual Studio?

I have a QT project that loads a QML project. I've have no problem debugging the QML part of the program when I run it from QT Creator. I've added
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DQT_QML_DEBUG ")
to my CMakeLists.txt and checked the "Enable QML" under "Debugger Settings" in "Project->Run"
But I would like to debug from Visual Studio, since that is the environment we usually work in.
Is it possible to manually do what QT Creator does when you check the "Enable QML" box, to activate debugging from Visual Studio? Attach to some process or similar?
I've tried to figure out what the "Enable QML" box actually does. But I've not been able to find any good explanation about this.
We use CMake to build, MSVC as compiler and CDB as debugger. The projects are in QT5.5 and QT Quick 2. Visual Studio is version 2015 Professional and QT Creator is version 4.1.0.
Since Qt Visual Studio tools 2.3, released in Oct 2018, the QML debugger is included and usable from Visual Studio :)

Unable to load C Project in Visual Studio 2015

When i try to load my C project in VS 2015,i got this error :
"Project cannot be loaded because installation components are missing : please install visual c++ 2015 tools for Windows Desktop".
Does somebody know how can i fix it without reinstalling VS2015 ?
To not reinstall Visual Studio which is time consuming, you need to go to File >> New >> Project and then choose Visual C++ folder.
There you will find your unavailable project that is saying
Install visual C++ 2015 tools for Windows Desktop
So just click on it and start installing the needed components. After the installation has completed, you'll be able to start and write C++ applications for Windows Desktop.
If the button doesn't show up (it only shows in the log), go to File -> New Project. Under Templates -> Visual C++ , it will show "Install Visual 2015 C++ Tools For Windows Desktop" as if it's one of the possible project templates. That'll show the install prompt.

Qt VS 2010 add-in

I've installed Qt4.7.4 as explained on this page:
http://www.holoborodko.com/pavel/2011/02/01/how-to-compile-qt-4-7-with-visual-studio-2010/
and I also installed the last version of the visual studio plugin (1.9.1).
I can create qt project, compile and run them with visual studio. However when I want to open a .ui file or the qt designer (Qt -> launch designer) I get the following error:
"No default Qt version found. Please check your Qt visual studio Add-in settings."
I already reinstalled the qt visual studio plugin but it didnt helped.
The right Qt version is also set in the options of the add-in (Qt -> Qt version)

Resources