Problem with include <QNetworkAccessManager>
Unsolved
General and Desktop
-
wrote on 2 Dec 2016, 12:35 last edited by A Former User 12 Feb 2016, 17:25
Hi
I want to add #include <QNetworkAccessManager>
But i get error:C:\Users\armin\Documents\DownloadManager\mainwindow.h:5: error: QNetworkAccessManager: No such file or directory
Why ?
-
wrote on 2 Dec 2016, 12:42 last edited by
Hi,
maybe you forgot to add:QT += network
to your .pro file.
-Michael. -
wrote on 2 Dec 2016, 13:41 last edited by
Thanks Michael
How can i add that?
I don't see in tutorial c++ -
wrote on 2 Dec 2016, 13:53 last edited by
Hi,
I am not sure what you want me to explain. I would load my .pro file in a text editor, add the line, save it , run qmake and compile again and hope for the best.
-Michael. -
Hi
If you are using Creator, simply click the .PRO file and it opens as any source file will.
1/5