Fast way to get html url of content using Qt?

I'm not interested in the QNetWork class and all its callbacks, I want a static function or something where I can simply:

QString html = QHttpHelperThingy::fetch("http://blah.com"); 

Is there such a thing?

+4
source share
2 answers

I believe this is the replacement path: http://doc.qt.io/archives/4.6/qnetworkaccessmanager.html , but QHttp will work in all 4.x series.

+2
source

QHttp exists and works just as you expect, but it has been deprecated. I have not yet found a replacement for this.

+1
source

Source: https://habr.com/ru/post/1299927/


All Articles