Change Qt Version Visual Studio

Posted By admin On 29.05.20
  1. Change Qt Version Visual Studios
  2. Visual Studio Code Qt
Active1 year, 2 months ago

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.

Download

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?

PhilippPhilipp

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 winrtx86msvc2015. Qt Visual Studio Tools integrate the Qt development tools into Microsoft Visual Studio 2017. This enables developers to use the standard Windows development environment without having to worry about Qt-related build steps or tools. Sep 30, 2014  CMake is also an answer and it does work with express versions of Visual Studio. I mean if you use the Qt support in CMake you can develop Qt projects in Visual Studio (like I have done for years) without the Qt Addon. I install the addon just for the debug expansion that comes in.

1 Answer

In VS2017, at the top menu I had to choose:

The entry list may be empty.

i.e.

Now, you can right-click the Solution

Jordan StefanelliJordan Stefanelli

Not the answer you're looking for? Browse other questions tagged qtvisual-studio-2017qt-vs-addin or ask your own question.

Active2 years, 8 months ago

I struggled finding a how-to which provides a stable solution for using Qt with Visual Studio 2010, so after collecting all the bits of information and some trial and error, I would like to write my solution into a guide.

The problem, or why is it not possible to use prebuilt binaries?

It seems that using binaries built for Visual Studio 2008 might work in some special cases, but I found them not to work. In my case they compiled OK, but they produce runtime errors, like this:

or when started from Visual Studio 2010:

Update: I found a blog post analysing why does it work for some people, while it does not for others. In one word, it depends on whether you have Visual Studio 2008 installed on the same machine, or not.http://blog.paulnettleship.com/2010/11/11/troubleshooting-visual-studio-2010-and-qt-4-7-integration/

The most important thing (that I stupidly didn’t realize) was the fact that you CANNOT use the Visual Studio 2008 compiled libraries and dll’s (available on the Qt webpage) if you don’t have Visual Studio 2008 installed. The reason is because the Qt SDK you download is a debug build which is dependant on the VC9.0 DebugCRT, meaning it needs the Visual C++ 2008 Debug Runtime installed, which is NOT available as a redistributable installer. The only way to install the DebugCRT is to install the entirety of Visual Studio 2008.


3 Answers

First of all, it’s very important to understand that for using Qt with Visual Studio 2010, it's not possible to use the pre-built binaries which were made for Visual Studio 2008, but you have to compile it from source.

Downloading Qt

On https://www.qt.io/download/

Update 2017: the latest Qt 4.x branch (Qt 4.8.6) has 2 pre-built packages, which are now in the archive section:

You should not download Qt by clicking 'Qt libraries 4.8.6 for Windows (Visual Studio 2008, 218 MB)', but by clicking on the 'zip' link above it.

Whatsapp plus pc. May 24, 2019  WhatsApp Plus has many excellent and extra features for the users. Here, I am going to discuss the fantastic features of this app. When the people felt boringness from the official WhatsApp, developers modified the official app and gave the APK file of WhatsApp Plus. Jan 12, 2019  How to download Whatsapp Plus Apk 2019 for PC. First, the user has to download bluestack emulator on their PC. This helps them to use any Android application on the desktop. After installing, cl ick to open BlueStacks Player. Once the BlueStacks Player opens then type Whatsapp Plus. Feb 13, 2019  WhatsApp Plus APK is developed with the sole intention of bringing a new chat experience to the users. All these premium features like Last seen hiding, Design customization, Revoking deleted messages aren’t available in a basic version which makes WhatsApp Plus is. Apr 07, 2019  If you are searching for the best method to Download and Install Whatsapp Plus on PC then you have landed on the right page. Because in this article, we have mentioned the best and easiest method to install Whatsapp Plus on Computer/ Laptop that is 100% Working. Dec 11, 2014  Download WhatsApp Plus For PC (Windows XP, 7, 8 and Mac) 5 years ago by William 0. WhatsApp is a best way to communicate with friends and family in a fastest way. It is a top free communication app available on Google Play Store. The other best part about this app is that to login, all you need to do is to put your number in it and bingo!

On that link, you get a big zip file like 'qt-everywhere-opensource-src-4.8.6.zip'. Unzip this into a folder and make its path something nice and small, for example 'E:Qt'

Visual Studio Command Prompt

Now that we have the sources, we need to build the binaries. To do it, open the Microsoft Visual Studio 2010Visual Studio ToolsVisual Studio Command Prompt (2010) link from your start menu, or even pin it to the taskbar (a good idea). This is a special command prompt which has all the variables set for building with Visual Studio 2010 tools.

Once within the command prompt, navigate to your extracted Qt folder using old-school DOS way, which means you have to change drive letter by E:, enter directories by cd Qt and list dir contents by dir. You can use the tab key for helping you with the directory names. When you have arrived at the correct directory, a dir command should return something like this.

Building Qt

Now it’s time for configure and build. For configuring a minimalist Qt, I'm using the following flags with configure.exe. Just copy and paste it into the command line. Look in the Qt reference manual for what flag to use or not to use.

Once configure.exe has finished (it was 10 minutes for me), you'll need to start the build process. It will take about 20-30 minutes with the above flags. To start it, just type:

Setting environment variables

Basically, we are done. All you need to do is to set your environment variables (QTDIR and PATH), which tell programs where to find Qt. If you are on Windows 7, you can use the following command to set QTDIR to your installation dir.

For setting the PATH, I strongly recommend using Path Editor. Within Path Editor

(it doesn't matter if it's in system path or user path)

Change Qt Version Visual Studios

If you prefer to use Control PanelSystemEnvironment Variables, then you can set these there, too.

Qt Visual Studio Add-in

Here you go, after a logoff-logon or a restart, all the Qt demo applications should start correctly (I recommend have a look at binqtdemo.exe). Now you can download and install the Visual Studio Add-in (qt-vs-addin-1.1.9.exe) from the Qt download page, it will work perfectly.

Appendix A: Official Instructions:

Visual Studio Code Qt

There is a page at the official wiki at the Qt website called Qt 4.8 Installing Qt for Windows, but I found it lacking important information.

References

Qt DevNet forums
Recommended flags for a minimalistic Qt build
Building Qt 4.5 with Visual C++ 2010
How to compile Qt as static
Qt 4.8: Configure options for Qt
Edit the PATH environment variable in
Windows without pain - op111.net


Qt V4.8.0 contains prebuilt binaries for Visual Studio 2010 so you don't need to do this anymore:http://qt.nokia.com/downloads/windows-cpp-vs2010


Refer below link and it might be useful1)https://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/Build_Instructions/Prerequisites/Qt#Windows_32)http://eecs.vanderbilt.edu/research/hmtl/wp/index.php/qt-vs/


Not the answer you're looking for? Browse other questions tagged c++visual-studiovisual-studio-2010qtbuild or ask your own question.