Adding search directory in Qt IDE
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.