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)
Related
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.
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 :)
I'm trying to used the prebuilt version of Qt 5.6 and Qt Creator with Microsoft Visual Studio Community 2015
When I try to compile one of the example Qt programs (filesystembrowser) I get the following error message:
Error while building/deploying project filesystembrowser (kit: Desktop Qt 5.6.0 MSVC2015 64bit) When executing step "Make"
and the Issue
Qt Creator needs a compiler set up to build. Configure a compiler in the kit options.
When I check Tools/Options/Kits, all of the auto detected compilers MSVC2015 32bit and 64bit have a red warning icon and in the Compiler field the message
"No Compiler"
Is it possible that the prebuilt version of Qt 5.6 is not compatible with MSVC 2015 Community edition? or am I doing something else wrong??
Version 14.0.23107.0 D14REL
Microsoft .NET Framework
Version 4.6.01055
Installed Version: Community
Maybe choose one of the offline installers instead of the online installers. It appears Qt 5.6.0 is built for VS2015. http://www.qt.io/download-open-source/#section-2
Use Qt Visual Studio Tools visual studio extension. it will do all the work, you can create a new Qt application right in the visual studio or import an existing one (+debugging, ...)
link: https://marketplace.visualstudio.com/items?itemName=TheQtCompany.QtVisualStudioTools-19123
Different versions of the Qt Visual Studio Addin are available for download at
Qt Visual Studio Addin
How do I know which version to install for different versions of Visual Studio?
I'm running Visual Studio 2012, but would like to know a general answer.
Don't use the archive by default, use it only if you need older version.
The Visual Studio addin you need depends on the Qt version you want, for Qt 5 you need version 1.2.4 and for Qt 4 you need 1.1.11, see the download section here
I installed Visual Studio 2010 Professional and Qt 4.8.0 for VS2010 plus Qt VS Add-in 1.1.10 yesterday and still can't figure out how to:
Edit project (.pro) files from within Visual Studio.
Specify/modify QMake parameters for Debug and Release builds from within Visual Studio.
Can anyone please tell me how to do the above tasks?
It's always a good idea to try the documentation first. Here is a link to the documentation of the Visual Studio add-in for managing Qt projects.