[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Keyboard repetition
From: Thiago Massari Guedes <thiedri () gmail ! com>
Date: 2010-09-05 21:49:56
Message-ID: AANLkTi=dRDuwPmE0swsSSwiMHg4pnvYdP93O1SS29=jT () mail ! gmail ! com
[Download RAW message or body]
Hey!
I ate some chars.. It should be fella.
Thanks for the help!
[]'s,
Thiago.
On Sun, Sep 5, 2010 at 6:43 PM, Thomas Lübking <thomas.luebking@web.de> wrote:
> Am Sunday 05 September 2010 schrieb Thiago Massari Guedes:
>> Hi dear fels,
> Fel? What's a fel? :-)
>
>> When I override keyPressEvent and keyReleaseEvent (QWidget), I receive
>> instead of 1 keypressevent when button is down and 1 keyreleaseevent
>> [..]
>> I see that it's the default qt behaviour, but I'd like to get only one
>> keypress and one keyrelease when I release.
>
> You cannot turn this off*, but QKeyEvent knows ::isAutoRepeat() - so you can
> just check that flag and skip event handling in case.
>
>
> *Actually that's an X11 thing. You could call XAutoRepeatOff(dpy) on FocusIn
> events and XAutoRepeatOn(dpy) on FocusOut, but
> a) that's not portable
> b) if anything goes wrong, joe user won't get autorepeat back on and hate you
> :-)
>
> Cheers,
> Thomas
>
>
>>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
>
--
=--=--=--=--=--=--=--=--=--=--=--=--=
http://www.blogaro.com.br/
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic