-1

When I open a qt gui project in visual studio (through qt-addin and openning .pro file in vs), it does not open console for me while in .pro file I'd added this line :

CONFIG += console

and console comes up in qt creator, but my problem is when I open the pro file in visual studio!.

how can I open console inside my gui in visual studio after opening .pro file in it? (I use qt5 and vs2012)

abdolahS
  • 663
  • 12
  • 35

1 Answers1

1

After adding your new CONFIG line to the .pro file, run the following command line call in the MSVC command line window to regenerate your Visual Studio project to be one for a Qt console application:

qmake -tp vc foo.pro

The Windows environment variables QMAKESPEC and QTDIR need to be properly set, and also set PATH=%QTDIR%\bin;%PATH%

falkb
  • 1,294
  • 11
  • 35