[Qt-interest] response in a loop

Constantin Makshin dinosaur-rus at users.sourceforge.net
Sat Aug 8 12:00:54 CEST 2009


Use QCoreApplication::processEvents() function  
(http://doc.trolltech.com/4.5/qcoreapplication.html#processEvents) --  
simply call
qApp->processEvents()
when you want to process pending events.

On Sat, 08 Aug 2009 04:10:32 +0400, <enjoywm at cs.wm.edu> wrote:
> Hi,
> I want to implement the functionality that in a loop, after each  
> iteration
>  response to some button click event.For example, while the program is
> busy computing in a iteration I click the button, the event will enter  
> the
> queue as a pending event. After the iteration I want to use the pending
> event to trigger a signal. How to do it?
>
> Thanks in advance.
>
> Yixun

-- 
Constantin "Dinosaur" Makshin



More information about the Qt-interest-old mailing list