void snipit::somefunkyStuff()
{
connect(http, SIGNAL(readyRead(const QHttpResponseHeader&)),
this, SLOT(readyReadCita(const QHttpResponseHeader&)));
-- some more code to do the http->request()
}
ba=http->readAll();
}
void snipit::somefunkyStuff()
{
http = new QHttp(this);
connect(http, SIGNAL(responseHeaderReceived(const QHttpResponseHeader &)),
this, SLOT(readResponseHeaderCita(const QHttpResponseHeader &)));
connect(http, SIGNAL(readyRead(const QHttpResponseHeader&)),
this, SLOT(readyReadCita(const QHttpResponseHeader&)));
-- some more code to do the http->request()
}
void snipit::readyReadCita( const QHttpResponseHeader &resp)
{ QByteArray ba;
ba=http->readAll();
QString temp1=ba;
QMessageBox::critical(this, "SNiPiTRON", temp1, QMessageBox::Ok,
QMessageBox::NoButton, QMessageBox::NoButton);
}
To copy to clipboard, switch view to plain text mode
Bookmarks