[Qt-interest] QGraphicsScene::keyPressEvent() only gets Ctrl-modified key presses
Josiah Bryan
jbryan at productiveconcepts.com
Mon Oct 19 04:41:39 CEST 2009
Josiah Bryan wrote:
> Weird problem just came up. I've got a class that inherits from
> QGraphicsScene and reimplements keyPressEvent() to catch F2 and a few
> other keys. It also catches Ctrl+C et al to do copy paste.
>
> The odd thing is, keyPressEvent() is ONLY called when the Ctrl modifier
> is pressed! Just pressing F2 or any other key by itself does not trigger
> the keyPressEvent().
>
> I even installed an event filter on the scene just to see if that sees
> anything - still nothing. Even the event filter only gets ctrl-modified
> keys.
I've banged my head against this one for 4+ hours today - no luck. Anybody have any ideas on this one either?
Thanks!
-josiah
More information about the Qt-interest-old
mailing list