Dov Feldstern wrote:
> Peter Kümmel wrote:
>> Dov Feldstern wrote:
>>> Peter Kümmel wrote:
>>>> Dov Feldstern wrote:
> 
>>> Again, to reproduce, just hold down any of the arrow keys, and keep
>>> holding it down. At some point it will just stop moving --- I assume
>>> this will happen on any machine if you hold the key long enough. From
>>> then on, anytime you hold down the key, only the single initial keypress
>>> event will be processed.
>>
>> I assume QCoreApplication::hasPendingEvents() is always true.
>>
>> The Qt doc says:
>>
>> "void QEvent::accept ()
>> Sets the accept flag of the event object, the equivalent of callign
>> setAccepted(true).
>> Setting the accept parameter indicates that the event receiver wants
>> the event.
>> Unwanted events might be propagated to the parent widget."
>>
>> (a spelling error in the Qt docs...)
>>
>> So does attached patch help?
>>
> 
> No :(, if anything it's worse: now holding a key is *always* processed
> as only a single keypress, there's not even an initial period when the
> cursor zooms along...
> 

Seems we could not use QCoreApplication::hasPendingEvents() to check if
the system is busy.

Peter

Reply via email to