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

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -