PDA

View Full Version : QGraphicsProxyWidget and touch events



johnsoga
21st February 2010, 06:53
I am trying to add a QWidget to a QGraphicsScene, for example a QPushButton in a QGraphicsScene. The button doesn't seem to get any touch events. The QGraphicsView is getting the touch events but it doesn't seem to propegate them to the QWidget. I have tried setting WA_AcceptTouchEvents attribute on the pushbutton and setAcceptTouchEvents( true ) on the QGraphicsProxyWidget. I noticed that overriding the sceneEvent of QGraphicsItem allows them to get the touch events. Does anyone know what I might be missing?

Thanks for any help