Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how should i change the value of QTDIR in VS2012

the include path for qt project in VS2012 is ($(QTDIR)\include\QtWidgets) and clearly this QTDIR is not defined correctly on my computer...

is there any way of fixing this?

thanks a lot

like image 772
Junchao Gu Avatar asked Dec 20 '25 10:12

Junchao Gu


1 Answers

If you are using the Qt Visual Studio Add-in:
1) You should open "Qt options" window and use "Add" button on the "Qt versions" tab.
2) Right click on your project in the "Solution Explorer", choose "Change project's Qt version" and select the correct Qt version. $(QTDIR) should be used automatically.

If you are not using Qt Visual Studio Add-in (It's unavailable for the express versions of VS), try this solution.

like image 166
ZeAL0T Avatar answered Dec 23 '25 00:12

ZeAL0T



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!