Working with Windows 7,
installed VS 2017 community,
Installed QT Visual Studio Tools,
Downloaded QT: "qt-opensource-windows-x86-winrt-msvc2015-5.8.0"
and added the path of winrt_x86_msvc2015 and winrt_x64_msvc2015.
When i start a new project "QT GUI Application" and click on the *.ui file, then the error message "No default QT version found. Check your Qt VS Tools settings." appears.
What did i do wrong?
Is the QT Download the right one? If not can you link the right?
which version is actually the right? x86 or x64?
Do i have to change something in Qt default settings?
In VS2017, at the top menu I had to choose:
Qt VS Tools > Qt Options
The entry list may be empty.
Click "Add"
Give it a name
Give it a path
i.e.
Name: Qt5.8
Path: C:\Qt\5.8\msvc2015_64
Now, you can right-click the Solution
Choose > "Change Qt Version" at the bottom of the right-click dialogue
Select your new entry "Qt5.8"
Related
I had been using VS2013 for some time and a Qt Tools tab was present (as shown in the screenshot below) after installing Qt Visual Studio Tools
PROBLEM: Now I have installed VS 2019 Community edition. I have already installed Qt Visual Studio Tools extension. But still, the Qt tab is missing in the ribbon (as shown in the screenshot below). Due to this, I am also not able to set the path of the Qt exe correctly.
PS: Qt extension is definitely installed properly because when I try to create a new project, it shows the various options to create Qt project.
In Visual Studio 2019 theQt VS Tools menu is a sub-menu in the Extensions menu.
Note: the binaries created with VS2013 are not compatible with VS2019, for it to work you need Qt build with Visual Studio 2015 or 2017.
I'm using QT for the first time to build a GUI. I'm following this Tutorial.
I followed the steps one by one as shown in the screenshot below.
Select the project
I selected Other project>>Empty qmake Project. Next I'm prompted to add the Kits.
Add Kits
I add the Kits, but in the next Tab "Qt Versions", there are no QT versions.
No QT Version
I figured i didn't install any QT Versions during the installation process. so I opened up the "Add or remove programs" and found that these are the components I have installed.
Installed components
Will these suffice to build a Desktop GUI using QT creator or are there any other components I have to install as well?
So, for a first try, I suggest using the MinGW compiler, since it is installed by Qt Maintenance Tool.
If you need to use the MSVC compiled Qt like the one selected in your pick, but you need also to install Visual Studio since you need the MSVC Compiler. If you also need to debug an MSVC Qt Application via QtCreator you need to manually configure the CDB, since the one installed with Visual Studio is not detected by Qt Creator.
Those pieces of information are related to MSVC2017 and Visual Studio 2017. If you intend to use MSVC2019 I don't know how QtCreator manages that.
About your situation is strange, you installed the MSVC Qt so they should be detected in QtCreator (tools -> options -> kits -> Qt Versions). I suggest to completely uninstall Qt and restart the process selecting just the MinGW 64-bit, QtCreator and MinGW Compiler 7.
I'm not able to create a Qt project with Visual Studio Community 2015 in Windows 10.
Steps I followed to setup QT with VS2015,
Installed visual studio community 10
Downloaded and installed QT for VS2015
Added QtPackage in VS2015 "Extensions and Updates", also added Qt version.
How I create new QT project
I select "QT application" under Visual C++ templates, which prompts couple of Qt project options to create application, but at the last before creating a project visual studio throws error
'C:\Users\users\AppData\Local\Temp\h451xhqd.vcproj' cannot be opened because its project type (.vcproj) is not supported by this version of the application.
However, I'm able to create a project with QT creator. Any help or pointer will be helpful.
PS: I'm new to VisualC++ :)
Below are the similar SO question that didn't helped
Question 1
Question 2
A video link from youtube
Finally, I was able to create a QT project.
Actually problem was with VC++ setup and template files. These two link was very helpful to me.
Running setup mentioned in section "Visual C++ : Project creation failure after Update"
Renaming ComponentModelCache
My setup consists of Microsoft Visual Studio Express 2013 and Qt 5.5.1. For the Debugger(s) I use CDB from the Windows SDK. I use both toolchains, 32bit and 64bit.
To clean up my machine, I recently deinstalled all Microsoft Visual Studio stuff including the debuggers. Now, after the new installation of all the tools, I am not able to set up the 64bit debugger anymore. The interesting thing is that both debuggers are correctly autodetected under the Debuggers tab Tools -> Options -> Debuggers.
Under the Kits tab, I see the yellow triangle on the 64bit entry. I also see that None is selected in the Debugger line. But I am not able to change this setting because it is deactivated.
I finally found a solution to this problem by editing a Qt Creator configuration file manually. The file toolchains.xml is found here in Windows 7:
%APPDATA%\Roaming\QtProject\qtcreator
Additional Note:
Since the original post, I've updated to Visual Studio 2015 Express and Qt 5.6. This environment is a lot simpler to set up than VS2013.
I want to export a visual studio project or the entire solution and I installed the Qt Visual Studio add-in but the menu actions are not clickable:
http://img88.imageshack.us/img88/756/capturebba.png
What can I do to export the project or solution?
You are probably trying to convert a project that doesn't actually use Qt and there's a bug preventing you to do that. Here is a workaround for Visual Studio 2008:
Open yourproject.vcproj file and after the line:
RootNamespace="yourproject"
Add a new attribute like this:
Keyword="Qt4VSv1.0"
And the workaround for Visual Studio 2010 is (haven't tried this one myself):
1) Open yourproject.vcxproj with a text editor
2) Locate the tag :
3) Between and add the following line :
Qt4VSv1.0
4) Reload your project in VS2010
5) In solution explorer, righ-click on your project
6) In the menu, select "Convert project to Qt Add-in project"
Revise your Qt Project Settings to include the modules you need and then you are ready to go.
Taken from here:
https://bugreports.qt-project.org/browse/QTVSADDINBUG-27