Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Adding search directory in Qt IDE
ArbolOne last edited by
I would like to add a very long path directly into my Qt project, so that I don't have to write something like:
Can this be done using QTIDE?
This has nothing to do with Qt Creator. You need to add your header to INCLUDEPATH in you .pro file (if you are using qmake):
Then, in your source file:
On a related note, don't use absolute paths in your source code! Make them relative to your project's root directory. Otherwise your code will not be useful on other machines.