[Qt-interest] Qt 4.6.2 on WinCE: QNetworkAccessmanager not triggered ????
Mattia Roberto
r.mattia at reply.it
Thu Apr 22 14:49:16 CEST 2010
Hi all,
I already posted on qt-wince-interest this issue, but perhaps here it can have wider audience.
I'working with Qt 4.6.2 and VS 2008 on Windows Mobile 6.5. (used mkspec is wincewm65professional-msvc2008).
I developed a simple application to test HTTP get operation using QNetworkAccessmanager
but I unable to perform the get and to receive finished signal.
In practice the get operation starts only after a manual mousepress on the application window.
With a network monitor I verified that, without a mouse click, the http get never starts (I don't see the http packets).
I ask your help to know if anyone else experimented this issue and if a workaround exists.
I saw in Bug tracker the QTBUG-8972 which seems pertinent to my issue but it's pending for info.
Structure of my project is the following.
-------main. Cpp---------
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
TestClass_Qt w;
w.show();
return a.exec();
}
-----TestClass.cpp---------
This class inherits from QMainWindow and has a menu action.
This menu action, when triggered, instantiates in turn the HTTP engine class (which includes QNetworkAccessManager member creation) and then launches the GET operation.
HttpEngine* http = new HttpEngine();
------HttpEngine.cpp----------
This class in the constructor instantiates the QNetworkAccessManager and binds the finishedslot.
nam = new QNetworkAccessManager(this);
connect(nam, SIGNAL(finished(QNetworkReply *)),this, SLOT(finishedSlot(QNetworkReply *)));
In a separate method the get is performed:
QUrl url("http://www.seat.it");
QNetworkRequest request(url);
reply = nam->get(request);
Execution is OK and I correctly log after the get instruction but nothing else happens if I don't click on the window.
Thanks in advance
Roberto Mattia
________________________________
--
The information transmitted is intended for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100422/f4cc4fde/attachment.html
More information about the Qt-interest-old
mailing list