Go to the documentation of this file.
10 #include <QGraphicsView>
51 #endif // VIEW_PREVIEW_H
virtual void wheelEvent(QWheelEvent *event)
Intercept wheel event and discard it so accidentally moving the wheel does not move drawn items out o...
void signalMouseMove(QPointF pos)
Forward the mouse move events.
ViewAspectRatio
Prevent aspect ratio distortion in certain previews by providing fixed 1:1 aspect ratio option.
virtual void mouseMoveEvent(QMouseEvent *event)
Intercept cursor move events and forward them.
virtual void resizeEvent(QResizeEvent *event)
Intercept resize events so we can rescale to the graphics items just fit into the resized window.
Class that modifies QGraphicsView to automatically expand/shrink the view to fit the window,...