[Interest] QNetworkAccessManager in a command line, non-eventloop application

Thiago Macieira thiago.macieira at intel.com
Fri Jan 18 02:27:16 CET 2013


On sexta-feira, 18 de janeiro de 2013 00.59.13, Scott Aron Bloom wrote:
> I have a command line application, with no event loop.

We can stop here. QNetworkAccessManager requires an event loop.

But if you're going to block anyway in order to do work, you can use 
QEventLoop to start the event loop until the request finishes.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130118/d71d0700/attachment.sig>


More information about the Interest mailing list