2

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!

László Papp
  • 51,870
  • 39
  • 111
  • 135
user3394949
  • 71
  • 1
  • 3

2 Answers2

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