# another "No such file or directory" error

• So, I encounter another interesting "no such file or directory" error in my program.

The interesting thing is, when I typed the classes I include in my source code, which are <QGraphicsItem> and <QGraphicsView> in this case, no warning was given. But when I tried to built it in Qt creator, it raise an error and told me that "C1083: can not open include file:No such file or directory".

Also, I went check the include path in my qt5.4 file, which is D:\Qt\Qt5.4.1\5.4\msvc2013_64\include in his case, I did exactly find the two header files.

Has any one met this error before? Can explain it?

And by the way, which is the default include path in qt creator and how to change it?

• @walkerlala said:

The interesting thing is, when I typed the classes I include in my source code, which are <QGraphicsItem> and <QGraphicsView> in this case, no warning was given. But when I tried to built it in Qt creator, it raise an error and told me that "C1083: can not open include file:No such file or directory".

Also, I went check the include path in my qt5.4 file, which is D:\Qt\Qt5.4.1\5.4\msvc2013_64\include in his case, I did exactly find the two header files.

Has any one met this error before? Can explain it?

Those headers are part of the Qt Widgets module. Do you have that module in your .pro file?

And by the way, which is the default include path in qt creator and how to change it?

The include path is specified by your Kit. See http://doc.qt.io/qtcreator/creator-targets.html

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.