Style preview has a 0.5s lag

Scott Wheeler wheeler at kde.org
Sun Jun 15 17:45:34 BST 2003


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

Basically it seems like this is what QWidget::setKeyCompression() is for:

void QWidget::setKeyCompression ( bool compress ) [virtual protected] 
[...]
If you turn it on and your program doesn't keep up with key input, Qt may try 
to compress key events so that more than one character can be processed in 
each event. 

For example, a word processor widget might receive 2, 3 or more characters in 
each QKeyEvent::text(), if the layout recalculation takes too long for the 
CPU.
[...]

- -Scott

- -- 
I mean, if 10 years from now, when you are doing something quick and dirty, 
you suddenly visualize that I am looking over your shoulders and say to 
yourself, "Dijkstra would not have liked this", well that would be enough 
immortality for me.
- -E. W. Dijkstra
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+7KKuQu0ByfY5QTkRAtKUAJ0d2erKD9uBvz9p6Cjg3dlnbDM3MQCgtLY0
jgxiWS6OkXvv/Fl+W7+8jKk=
=AX2t
-----END PGP SIGNATURE-----




More information about the kde-core-devel mailing list