Important: Please read the Qt Code of Conduct -

QGraphicsRectItem keyPressEvent problem

  • Hello Everyone,

    I have a QGraphicsItem and it has child QGraphicsRectItems. I want to handle keyPressedEvent in the child items, but I am not able to catch keyboard input from child item.

    When I set itemIsFocusable for parent item and reimplement keyPressedEvent() it works well for parent. But When I do the same thing some child it does not work.

    Any idea?

Log in to reply