I wathed a video on youtube about QtNetwork. My Qt version is 5.2. Qt cannot find the QHttp header. I searched my Mac for QHttp and got nothing. What is the substitute for QHttp in Qt 5.2? Thank you!
Asked
Active
Viewed 848 times
2 Answers
2
It is in a separate module now, so you can use it from there. You would write something like this in your qmake project file:
QT += http
Please consider using QNetworkAccessManager
as much as possible, however. QtFtp and QtHttp are there just for aiding the move, but people would need to use them as a last resort.
The reason is that no one maintains them actively and their solution for the use case is not ideal.

László Papp
- 51,870
- 39
- 111
- 135
1
QHttp has been made private, and QNetworkAccessManager should be used instead.

saiarcot895
- 554
- 5
- 16
-
Note that there are separate add-ons. – László Papp Mar 08 '14 at 02:10