[Qt-interest] Eventloop started in a thread where an event loop isalready running
Pritam Ghanghas
pritam_ghanghas at infosys.com
Tue Aug 23 10:08:59 CEST 2011
On Tue, 2011-08-23 at 11:48 +0530, srikanth bemineni wrote:
> I read the documentation but it is still not clear
>
> When application starts it has an event loop(initiated on the
> QApplication) running which we consider as a main event loop.If at all
> I create QEventloop object and call exec, according to the
> documentation it says that it creates a local event loop.Now please
> let me know which event loop is handling the events.
>
The eventloop that was strarted last is handling all the events by
calling processEvent(). So, a local event will block your program
execution, apart from that you wont feel the difference.
> On Tue, Aug 23, 2011 at 12:46 AM, Scott Aron Bloom
> <Scott.Bloom at onshorecs.com> wrote:
> RTFM???
>
>
>
> http://doc.qt.nokia.com/latest/qeventloop.html#details
>
>
>
> Its pretty clear from the docs..
>
>
>
> From: qt-interest-bounces
> +scott.bloom=onshorecs.com at qt.nokia.com
> [mailto:qt-interest-bounces
> +scott.bloom=onshorecs.com at qt.nokia.com] On Behalf Of srikanth
> bemineni
> Sent: Monday, August 22, 2011 10:43 PM
> To: qt-interest at trolltech.com
> Subject: [Qt-interest] Eventloop started in a thread where an
> event loop isalready running
>
>
>
>
> Hi,
>
> What happens when we start a Eventloop by calling
> QEventLoop::exec() where already a parent event loop is
> running ?
>
> What happens to the events.?
>
> Which Event loop will be handling the events.? The parent
> event loop or the child(later) created event loop ?
>
> With regards
> Srikanth
>
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
>
>
**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely
for the use of the addressee(s). If you are not the intended recipient, please
notify the sender by e-mail and delete the original message. Further, you are not
to copy, disclose, or distribute this e-mail or its contents to any other person and
any such actions are unlawful. This e-mail may contain viruses. Infosys has taken
every reasonable precaution to minimize this risk, but is not liable for any damage
you may sustain as a result of any virus in this e-mail. You should carry out your
own virus checks before opening the e-mail or attachment. Infosys reserves the
right to monitor and review the content of all messages sent to or from this e-mail
address. Messages sent to or from this e-mail address may be stored on the
Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***
More information about the Qt-interest-old
mailing list