PDA

View Full Version : How do I avoid typing full path of #incude files when they don't work otherwise?



Salads
20th January 2013, 05:54
I've been learning QT 5.0 and I decided to learn how to do simple downloads off the internet and such. A few references told me to #include QNetworkRequest however it did not recognize the file at all. :confused:

I went into the directory where the libraries are installed and there stood the exact library that I needed to include! So I had to type the full path:
<C:\Qt\Qt5.0.0\5.0.0\msvc2010\include\QtNetwork\QNe tworkRequest>

My question is how would I tell it where to find this library so I don't have to type the full path?

ChrisW67
20th January 2013, 08:28
See my answer on your other thread.

myta212
21st January 2013, 06:22
Hi,
You can add INCLUDEPATH and LIBS variable in your pro file. Please check at qmake tutorial in the qt documentation.
http://doc.qt.digia.com/qt/qmake-project-files.html

Regards,

Myta