QT http get返回值问题

connect(pManager, SIGNAL(finished(QNetworkReply *)), this, SLOT(replyFinished(QNetworkReply *)));
connect(pManager1, SIGNAL(finished(QNetworkReply *)), this, SLOT(replyFinished1(QNetworkReply *)));
connect(pManager2, SIGNAL(finished(QNetworkReply *)), this, SLOT(replyFinished2(QNetworkReply *)));
connect(pManager3, SIGNAL(finished(QNetworkReply *)), this, SLOT(replyFinished3(QNetworkReply *)));

因为我的url是这种的: /api2/json/nodes/{node}/qemu/{vmid}/spice

花括号中的是需要我get url,通过返回值获取的,所以我需要多次get,我每次get为了接收返回值,都需要创建槽函数,这样应该有问题吧,有没有好的办法解决这个问题。拜托大神指点下。

查看全部
baidu_20048575
baidu_20048575
2016/06/14 05:15
  • 点赞
  • 收藏
  • 回答
    私信

1个回复