[Qt-interest] QNetworkReply readyRead() doesn't fire
Alex Ivasyuv
industral at gmail.com
Fri Oct 29 17:51:21 CEST 2010
Hi,
I can't resolve an issue with simple HTTP request in QT.
void Connection::doSmth() {
QNetworkAccessManager manager;
QNetworkRequest request;
request.setUrl(QUrl("http://example.com/"));
this -> reply = manager.get(request);
connect(reply, SIGNAL(readyRead()), this, SLOT(httpFinished()));
}
void Connection::httpFinished() {
cout << 1 << endl;
// cout << this -> reply -> readAll().data() << endl;
}
Problem, that httpFinished method doesn't fired at all.
What's wrong with my code?
Thanks in advance,
More information about the Qt-interest-old
mailing list