Home > Mobile > The QGraphicsScene wheelEvent does not trigger a QGraphicsView scroll bar?
The QGraphicsScene wheelEvent does not trigger a QGraphicsView scroll bar?
Time:10-13
Custom QGraphicsScene, rewrite its wheelEvent events, to implement all the ITEM in the scene (lines, text) zoom Internal is redrawn ITEM and reset the scene setSceneRect.
But at run time, found that the scaling operation, will trigger a QGraphicsView scroll bar, led to the scroll bar up and down or so mobile, and cause the whole scene XY position change, even if the scroll bar to hide or close, still have such a situation,