c++ - Can't include as <QtCore/QString> -


in project, qtcreator lets me do:

#include <qtcore> // include core #include <qstring> 

but not

#include <qtcore/qstring> 

i have .pro file have qt += core ... don't know issue. looked @ compile output , appends -i/path/to/qt/include/qtcore/ want want add -i/path/to/qt/include/. don't know problem. using exact project ubuntu 14.04 , upgraded 16.04. having issue. qtdir set, qt kit showing no strangeness etc.

qt doesn't have documented path include dir in include path while compiling. shouldn't write #include <qtcore/qstring>. should write #include <qstring> documentation says:

http://doc.qt.io/qt-5/qstring.html

if really, need, can add path include path manually in .pro file:

includepath += /path/to/qt/include 

Comments

Popular posts from this blog

'hasOwnProperty' in javascript -

python - ValueError: No axis named 1 for object type <class 'pandas.core.series.Series'> -

java - How to provide dependency injections in Eclipse RCP 3.x? -