开发者

Quick way to fetch URL html contents with Qt?

开发者 https://www.devze.com 2022-12-18 11:52 出处:网络
I\'m not interested in theQNetWork class and all it\'s callbacks, I want a static function or something where I can just:

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

开发者_StackOverflowQString html = QHttpHelperThingy::fetch("http://blah.com");

Does such a thing exist?


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消