Detecting a keypress during some heavy operation
Rob Kaper
cap at capsi.com
Sat Feb 7 04:05:51 GMT 2004
On Sat, Feb 07, 2004 at 02:25:56AM +0100, Marc Mutz wrote:
> 2. If the operation can be divided into chunks (say, ten iterations of
> the for loop each), then you can put the operation into a slot, call
> that slot to perform the first chunk and make the slot call itself for
> the next chunk via the event loop by adding a
> QTimer::singleShot( 0, this, SLOT(mySlot()) )
> just before returning from the slot.
That's a basic and recommended example from the 'KDE 2.0 Development' book
even.
Rob
--
Rob Kaper | 2/17 Blink-182, 2/29 Anti-Flag
cap at capsi.com | 3/5 Anti-Flag/Heideroosjes, 3/19 The Offspring
www.capsi.com | 3/24 Good Riddance/None More Black, 5/14 Disney
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20040207/473997f2/attachment.sig>
More information about the kde-core-devel
mailing list