QUrl url("http://apis.juhe.cn/lottery/query?xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
auto replay = Http::instance().get(url);
connect(replay, &HttpReply::data, this, &QDoubleColorBallManager::onData);
connect(replay, &HttpReply::error, this, &QDoubleColorBallManager::onError);
我记得有个http库。纯C语言写的。具体git地址忘记了。