Trok
29th September 2011, 12:59
I looking for some method of reciving reply from page instead of EventLoop, like here:
bool Engine::connection(){
request.setUrl(QUrl(sUrl));
reply = manager->get(request);
connect(reply, SIGNAL(readyRead()), eventLoop, SLOT(quit()));
eventLoop->exec();
//read reply
return reply->error() ? false : true;
}
How can I read it in a different way without using new slot?
I also tried waitForReadyRead function, but it doeasn't work.
bool Engine::connection(){
request.setUrl(QUrl(sUrl));
reply = manager->get(request);
connect(reply, SIGNAL(readyRead()), eventLoop, SLOT(quit()));
eventLoop->exec();
//read reply
return reply->error() ? false : true;
}
How can I read it in a different way without using new slot?
I also tried waitForReadyRead function, but it doeasn't work.