What Environmental Variables PATH I need to add for Qt5 to recognize include ?
I used VS2012 command prompt to build Qt5Sdk and it's work, but it's not recognize
include QtGui/QApplication,
include QFileDialog
and more...it's does recognize
include QGui
.
maybe VS2012 build didn't goes well?
Thanks!
In Qt5, QApplication class was moved from QtGui modul to QtWidgets.
So, instead of
#include <QtWidgets/QApplication>
put
#include <QtGui/QApplication>
and instead of
QT += core gui
you should have
QT += core gui widgets
In Qt5, you need to specify the modules you're using in your Qt project file. In this case:
QT += widgets
This should take care of configuring the include directories correctly.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With