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 -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -