[Qt-interest] qthread

Thiago Macieira thiago.macieira at trolltech.com
Sat Jun 20 17:02:07 CEST 2009


Nicola De Filippo wrote:
>Hi,
>
>> > 	{
>> > 		qDebug() << "print";
>> > 	}
>> >     return app.exec();
>> > }
>> >
>> > why now the server don't recevie clienti request?
>> >
>> Because your application event loop isn't running
>
>right, but for my appllication this is a problem.

Then fix your application code: you must start the event loop to receive 
requests. So refactor the code you placed before the exec() into an event-
loop-driven and non-blocking form.

-- 
Thiago Macieira - thiago.macieira (AT) nokia.com
  Senior Product Manager - Nokia, Qt Software
      Sandakerveien 116, NO-0402 Oslo, Norway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090620/8d65a5cc/attachment.bin 


More information about the Qt-interest-old mailing list