[Interest] Qt Events/Signals and Loops (while ... for..)

Abhishek abhishekworld at gmail.com
Wed Aug 29 16:56:38 CEST 2012


do you mean return statement after my loop ? like while(x==true){..} return;

but I have while(x == true) { ... } which I want to stop when I receive
stop message from my client.


On Wed, Aug 29, 2012 at 4:44 PM, Thiago Macieira
<thiago.macieira at intel.com>wrote:

> On quarta-feira, 29 de agosto de 2012 16.19.46, Abhishek wrote:
> > Hello all,
> > I have a program in which on main thread I have TCP server to receive
> > messages and process on it.
> >  - on one specific message TCP server start one while infinite loop
> >  - to stop this loop I have another TCP message
> >
> > but while in loop I see that I am not able to receive any TCP signals.
> >
> > I tried adding QCoreApplication::processEvents()  in my loop but nothing
> > work.
> >
> > Please let me know the proper way to handle such situation.
>
> Add this:
>         return;
>
> Let your application return to the main event loop.
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel Open Source Technology Center
>      Intel Sweden AB - Registration Number: 556189-6027
>      Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
>


-- 
Abhishek
http://thezeroth.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120829/2cb71e5e/attachment.html>


More information about the Interest mailing list