Detecting a keypress during some heavy operation

Andras Mantia amantia at kde.org
Fri Feb 6 13:41:31 GMT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

 I would like to detect if the user pressed the key while the app is doing
some heavy operation, so it will be possible to suspend/stop that operation
and make the user interface more responsive. Is it possible to do without
threads (I'd like to avoid them as they may introduce new problems)? I've 
tried reimplementing the keyPressEvent in the widget which has
the focus (the editor widget), but it seems that it is never called.

Andras

- --
Quanta Plus developer - http://quanta.sourceforge.net
K Desktop Environment - http://www.kde.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)

iD8DBQFAI5mLTQdfac6L/08RAodtAJ9R6oWoI7CwX40rE0WVaUf/5tpr+QCeM/ui
+Q1EMjLRIgsbrPiC3UnBHlU=
=vNMF
-----END PGP SIGNATURE-----




More information about the kde-core-devel mailing list