Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use Qt library with VisualStudio 2017?

At the official Qt library site present only Qt add-in for Microsoft Visual Studio 2013 and 2015. And there are no one for MSVS 2017.

How to use Qt library with visual studio 2017 in this case?

like image 892
AeroSun Avatar asked Apr 20 '17 12:04

AeroSun


People also ask

How can I add Qt version in Visual Studio 2017?

Under tools select Extensions and Updates. click the Online arrow on the left and search for Qt. Install the Qt Visual Studio Tools extension. Restart the Visual Studio 2019 IDE and under Qt VS Tools –> Qt Options add the Qt version 5.14 with associated directory C:\qt\5.14.

How do I add a Qt in Visual Studio?

In Microsoft Visual Studio, select Extensions > Manage Extensions > Online, and search for Qt Visual Studio Tools to install or update Qt VS Tools.


1 Answers

You can get the add-in beta here, it should be mostly working. I mean if you want IDE integration. Otherwise it should build fine via the build tools command prompt (or however they call it now) via qmake project and then make.

As for building the Qt framework itself, it should probably work too, maybe with the exception of the QWebEngine stuff. It also seems that MSVC 2017 and 2015 are binary compatible, so it may be possible to use Qt binaries, built with MSVC 2015, therefore making it an option to avoid building Qt from source.

IIRC the incoming version 5.9 will offer MSVC 2017 prebuilt binaries.

like image 100
dtech Avatar answered Oct 07 '22 13:10

dtech