How to propagate mouse events to a QGraphicsItem in a QGraphicsItemGroup?
问题 I want to catch mouse events for some QGraphicsItem . When the item is added directly to a QGraphicsScene , everything works as expected: when using option 1 below, the console prints "foo" when the user clicks within the rectangle. However, if the item is added indirectly via a group, it does not receive events anymore (option 2 below). It seems the event chain is broken that way. I tried to set scene as the parent to the QGraphicsItem to restore the chain but it results in an error,