[Qt-interest] Troubles with QNetworkAccessManager
Thiago Macieira
thiago at kde.org
Wed May 11 09:07:00 CEST 2011
On Wednesday, 11 de May de 2011 08:18:19 Lars Andersson wrote:
> >> I am able to reproduce the problem with this minimal application.
> >>
> >> #include<QtCore/QCoreApplication>
> >> #include<QtNetwork/QNetworkAccessManager>
> >> #include<QtNetwork/QNetworkRequest>
> >> #include<QUrl>
> >>
> >> int main(int argc, char *argv[])
> >> {
> >>
> >> QCoreApplication a(argc, argv);
> >> QNetworkAccessManager networkAccessManager;
> >> networkAccessManager.get(QNetworkRequest(QUrl("http://www.go
> >> ogle.se"))); return a.exec();
> >>
> >> }
> >>
> >> Have anyone encountered this problem before?
> >
> > Umm...how does this app show the problem? I don't see any slots
> > connected to QNAM's signals?
> >
> > -mandeep
>
> This minimal application gives the errors that I mentioned when compiled
> and run on my Windows 7 64 bit.
> As you point out I don't even need to connect any signals to get the
> error, it's enough to call the get() function in the QNAM.
> If I would have connected any slot to the finished signal in the QNAM I
> would have noticed that the signal never gets fired,
> which I notice in my real application.
>
> Everything works without any problems on Linux, it is very confusing.
Report as a bug to "Network: Bearer Management" and please include your
testcase too.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Senior Product Manager - Nokia, Qt Development Frameworks
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110511/bece9541/attachment.bin
More information about the Qt-interest-old
mailing list