ferebia
21st June 2016, 19:17
I created a qGLWidget that is the parent to a QGraphicsScene, I have bypassed the use of a qGraphicsView. Ive read that a qGraphicsView handles all the mouse events for a qGraphicsScene and passes the events to it after making it into a qgraphicscenemouseevent.
Ive looked through the source for change between a QMouseEvent and a QGraphicsSceneMouseEvent and I am attempting to use that as my basis for creating a qgraphicsscenemouseevent from the qglwidget. I would like to know it is even possible to pass a mouse event from a qglwidget to qgraphicsscene? and how to pass?
Ive looked through the source for change between a QMouseEvent and a QGraphicsSceneMouseEvent and I am attempting to use that as my basis for creating a qgraphicsscenemouseevent from the qglwidget. I would like to know it is even possible to pass a mouse event from a qglwidget to qgraphicsscene? and how to pass?