y2k
y2k

Reputation: 66026

Quick way to fetch URL html contents with Qt?

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

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

Does such a thing exist?

Upvotes: 4

Views: 1113

Answers (2)

e8johan
e8johan

Reputation: 2939

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

Upvotes: 2

Benoît
Benoît

Reputation: 17004

QHttp exists and approximately works as you expect it to, but it's been declared obsolete. I have not found any replacement for it so far.

Upvotes: 1

Related Questions