[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Replacement for processEvents() call within while loop
From: David Faure <faure () kde ! org>
Date: 2007-09-28 10:18:22
Message-ID: 200709281218.24047.faure () kde ! org
[Download RAW message or body]
On Thursday 27 September 2007, Vlad wrote:
> One way to get around it would
> be to make done() emit a signal. The problem is that, once the helper
> is done, execution must revert to the function that currently contains
> the while loop
QEventLoop can do this. Connect to your signal, call eventLoop.exec(QEventLoop::ExcludeUserInputEvents)
and in your slot call eventLoop.quit(), so that the control goes back to the method that called exec.
--
David Faure, faure@kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic