[Qt-interest] QWebView loadFinished signal catching all responses even from different modules
Meir Yanovich
meiry242 at gmail.com
Wed Apr 14 10:49:09 CEST 2010
Hello all
im using one main QNetworkAccessManager that is in singleton class every
time some part from the application
that looks like this :
NetWorkService::NetWorkService()
{
manager = new QNetworkAccessManager();
}
QNetworkAccessManager* NetWorkService::getManager()
{
return manager;
}
needs to preform http call it calls the getManager() method that returens
the one and only poiner to QNetworkAccessManager
each module for example in my case webkit module and none webkit but simple
module that preform http calles
has its own signals , but no matter which http call i preform i allays get
result in the webkit signal
that looks like this :
this is in the webkit module :
connect(view, SIGNAL(loadFinished(bool)), SLOT(finishLoading(bool)));
and this is in the simple http calls module :
QEventLoop loop;
QNetworkReply *reply = networkManager->get(request);
connect(reply, SIGNAL(finished()), &loop, SLOT(quit()));
loop.exec();
QByteArray data=reply->readAll();
response.append(data);
i never get any data into data variable
only in the finishLoading callback
why ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100414/25cbccbc/attachment.html
More information about the Qt-interest-old
mailing list