4

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?

2 Answers 2

2

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.

Sign up to request clarification or add additional context in comments.

1 Comment

Yes, with QNetworkAccessManager you can do it in 3 or 4 lines and one slot for the finished() signal. Do not use QHttp.
1

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.

1 Comment

+1, I don't find any replacement either, and QnetworkAccessManager does not provide the same level of control

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.