From kde-core-devel Sun Jun 15 16:45:34 2003 From: Scott Wheeler Date: Sun, 15 Jun 2003 16:45:34 +0000 To: kde-core-devel Subject: Re: Style preview has a 0.5s lag X-MARC-Message: https://marc.info/?l=kde-core-devel&m=105569564808027 -----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-----