[Interest] keyboard auto-repeat rate?
Nikos Chantziaras
realnc at gmail.com
Sat Jun 9 01:58:05 CEST 2012
On 09/06/12 02:43, John Weeks wrote:
>
> On 08-Jun-2012, at 4:39 PM, Nikos Chantziaras wrote:
>
>> Check the keyboardInputInterval property of QApplication. You can query
>> it but also set it.
>
> Yes, I saw that. The documentation:
>
> " This property holds the time limit in milliseconds that distinguishes
> a key press from two consecutive key presses."
>
> doesn't sound like the repeat rate. It sounds like a keyboard de-bounce
> filter.
Oops, you're right. It doesn't seem like Qt offers a way to query or
set this. I suspect this might be due to the global nature of this
setting. It's set in an operating system or desktop environment
preference and affects all applications. Setting it from a Qt app would
probably mean that the new setting would apply to other application as
well, which is not good. And having read-only access to this value
doesn't serve any useful purpose.
But I suppose a Qt guru might be able to answer this with more confidence.
More information about the Interest
mailing list