"QT += network" in pro but <QNetworkAccessManager> can't be found! [SOLVED]
-
-
bq. After you modified a .pro file you need to run qmake to regenerate the Makefiles.
If you use qtcreator then right click on a project name ans select “run qmake”I already solved it by entering <QtNetwork/QNetworkAccessManager>
Plus, I don't think you need to run qmake manually in most of the cases. Thanks for helping. -
[quote author="amahta" date="1392565334"]I don't think you need to run qmake manually in most of the cases.[/quote]I'm glad it works for you now. But for the record, Zlatomir and andreyc gave the correct official solution. Running qmake updates your Makefile to include the correct headers.
-
I see. That's weird!
Anyway, all the best with your project :)