connect(&nvm, SIGNAL(finished(QNetworkReply*)), this, SLOT(connector(QNetworkReply*)));
QNetworkRequest request
(QUrl("string for your url"));
request.setHeader(QNetworkRequest::ContentTypeHeader,"application/x-www-form-urlencoded");
data.append("first_item=first_variable");
data.append("&second_item=second_variable")
nvm.post(request, data);
connect(&nvm, SIGNAL(finished(QNetworkReply*)), this, SLOT(connector(QNetworkReply*)));
QNetworkRequest request(QUrl("string for your url"));
request.setHeader(QNetworkRequest::ContentTypeHeader,"application/x-www-form-urlencoded");
QByteArray data;
data.append("first_item=first_variable");
data.append("&second_item=second_variable")
nvm.post(request, data);
To copy to clipboard, switch view to plain text mode
Remember you have to craete your own slot named connector (in my case you can name it as you want)
Bookmarks