Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

QT with Visual Studio 2013 Express

I'm trying to get QT to work with Visual Studio Express 2013.

As first I downloaded sources, and was trying to compile it using Developer Command Prompt for VS2013. Gave up, after adding to QT source files new things, to keep compiler move on.

After that I just installed QT binaries. The QT: "qt-windows-opensource-5.1.1-msvc2012-x86_64-offline.exe"

It has it's own editor, but I would like to use QT inside Visual Studio Express 2013. Can I just link libraries, from Visual Studio Express 2013 project?

I linked C:\Qt\2010.05\qt\include to the Include, C:\Qt\2010.05\qt\lib to the libraries and C:\Qt\2010.05\qt\bin.

But there are a lot os subdirectories, that Visual doesn't include.

Should I wait for QT Sources compatible with Visual Studio Express 2013? Or can I use it now, like that?

Regards

like image 465
Pikachu Avatar asked Dec 01 '13 10:12

Pikachu


People also ask

Can I use Qt with 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.

How do I add a Qt to a Visual Studio project?

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.

Is Qt Creator better than Visual Studio?

Visual Assist. easier project file configuration and customization (qmake is way too limited in some areas) Visual Studio is my choice for C++ development (I'm used to it) Qt integration is not that good (IMHO)

What is Msvc Qt?

MinGW is distributed together with Qt Creator and Qt for Windows. MSVC (Microsoft Visual C++ Compiler) is a C++ compiler that is installed with Microsoft Visual Studio. Nim is the Nim Compiler for Windows, Linux, and macOS. QCC is the interface for compiling C++ applications for QNX.


1 Answers

To do this from cmd.exe you have to edit your PATH by adding QtDir/bin there, then cd to your project directory and write the line written before.

Everything should looks like this:

  1. Run cmd.exe
  2. cd your_project_dir/
  3. qmake -spec win23-msvc2010 -tp vc

After this manipulations you will have .vcproject file in your project directory

like image 197
tema Avatar answered Nov 15 '22 06:11

tema