请问有没有这方面的demo或者教程呢
------解决方案--------------------
//需要引用的头文件:
#include <QNetworkAccessManager>
#include <QNetworkRequest>
#include <QtNetwork>
#include <QNetworkReply>
、、示例代码
QNetworkRequest request;
//url为你要post的地址
request.setUrl(QUrl(url));
QNetworkAccessManager *m_pNetWorkAccMananger = new QNetworkAccessManager();
//m_reply为成员,因为使用qt的post或者get,如果想要获得返回的结果的话,需要挂上对应的槽
m_reply = m_pNetWorkAccMananger->post(request, url.toUtf8());
connect(m_reply, SIGNAL(readyRead()), this, SLOT(slotReadyRead()));