[Qt-interest] Is there a way to process all queued events before continuing?

Preet preet.desai at gmail.com
Wed Dec 16 16:22:51 CET 2009


Hi,

Thanks for the reply. I'm trying to clear all pending events in my secondary
thread's event queue. Doesn't processEvents do this for my main Gui thread?
(not what I want to do). There's no QThread::ProcessEvents() function... I'm
looking for such an analog.

-Preet

On Tue, Dec 15, 2009 at 11:53 PM, Bill King <bill.king at nokia.com> wrote:

>  On 12/16/2009 12:05 PM, ext Preet wrote:
>
> Hey all,
>
>  I'd like to force an auxiliary thread to process all of its queued
> events. I can ensure that the thread will no longer receive new signals, but
> I need to be able to wait until the events are processed.
>
> QCoreApplication::processEvents ?
>
> --
> Bill King, Software Engineer
> Qt Development Frameworks, Nokia Pty Ltd
> Brisbane Office
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091216/994e0454/attachment.html 


More information about the Qt-interest-old mailing list