📜  Qt 异步 HTTP 请求 - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:53.899000             🧑  作者: Mango

代码示例1
QNetworkAccessManager *manager = new QNetworkAccessManager(this);
connect(manager, &QNetworkAccessManager::finished,
        this, &MyClass::replyFinished);

manager->get(QNetworkRequest(QUrl("http://qt-project.org")));