I'm new to Qt so please be kind!
I've overridden QGraphicsItem::keyPressEvent, focusInEvent and focusOutEvent and set QGraphicsItem::ItemIsFocusable in my QGraphicsItem's constructor.
My objects now receive focusInEvent and focusOutEvent events, but not keyPressEvent.
My scene does not have a keyPressEvent handler, so I know it is not blocking this event from reach my objects.
My project at this stage is too large to post and annoyingly, when I created a minimal project to try to reproduce the problem, keyPressEvent is always received correctly!
What could be blocking keyPressEvent events from getting to my QGraphicsItems?
- I could restart my project putting it back together line by line/function by function (it's about 2000 lines so I'm at the point where doing so will be really annoying). But before I do, if anyone knows of any obvious gotchas that immediately come to mind it would be very muchly appreciated.
Thanks
J
Bookmarks