The GraphicsView class.
More...
#include <graphicsview.h>
Inherits QGraphicsView.
◆ GraphicsView() [1/2]
◆ ~GraphicsView()
◆ GraphicsView() [2/2]
◆ getScene()
◆ getVisibleSceneRect()
QRectF getVisibleSceneRect |
( |
| ) |
const |
|
noexcept |
◆ getUseOpenGl()
bool getUseOpenGl |
( |
| ) |
const |
|
inlinenoexcept |
◆ getGridProperties()
◆ setUseOpenGl()
void setUseOpenGl |
( |
bool |
useOpenGl | ) |
|
|
noexcept |
◆ setGridProperties()
◆ setScene()
◆ setVisibleSceneRect()
void setVisibleSceneRect |
( |
const QRectF & |
rect | ) |
|
|
noexcept |
◆ setSceneRectMarker()
void setSceneRectMarker |
( |
const QRectF & |
rect | ) |
|
|
noexcept |
Setup the marker for a specific scene rect.
This is intended to mark a specific area in a scene, with a line starting from the top left of the view, so the user can easily locate the specified area, even if it is very small.
- Parameters
-
rect | The rect to mark. Pass an empty rect to clear the marker. |
◆ setOriginCrossVisible()
void setOriginCrossVisible |
( |
bool |
visible | ) |
|
|
noexcept |
◆ setEventHandlerObject()
◆ mapGlobalPosToScenePos()
Point mapGlobalPosToScenePos |
( |
const QPoint & |
globalPosPx, |
|
|
bool |
boundToView, |
|
|
bool |
mapToGrid |
|
) |
| const |
|
noexcept |
◆ handleMouseWheelEvent()
void handleMouseWheelEvent |
( |
QGraphicsSceneWheelEvent * |
event | ) |
|
|
noexcept |
◆ zoomIn
◆ zoomOut
◆ zoomAll
◆ zoomToRect
void zoomToRect |
( |
const QRectF & |
rect | ) |
|
|
slotnoexcept |
◆ cursorScenePositionChanged
void cursorScenePositionChanged |
( |
const Point & |
pos | ) |
|
|
signal |
Cursor scene position changed signal.
- Parameters
-
pos | The new cursor position (not mapped to grid!) |
◆ zoomAnimationValueChanged
void zoomAnimationValueChanged |
( |
const QVariant & |
value | ) |
|
|
privateslotnoexcept |
◆ operator=()
◆ wheelEvent()
void wheelEvent |
( |
QWheelEvent * |
event | ) |
|
|
private |
◆ eventFilter()
bool eventFilter |
( |
QObject * |
obj, |
|
|
QEvent * |
event |
|
) |
| |
|
private |
◆ drawBackground()
void drawBackground |
( |
QPainter * |
painter, |
|
|
const QRectF & |
rect |
|
) |
| |
|
private |
◆ drawForeground()
void drawForeground |
( |
QPainter * |
painter, |
|
|
const QRectF & |
rect |
|
) |
| |
|
private |
◆ mEventHandlerObject
◆ mScene
◆ mZoomAnimation
QVariantAnimation* mZoomAnimation |
|
private |
◆ mGridProperties
◆ mSceneRectMarker
◆ mOriginCrossVisible
◆ mUseOpenGl
◆ mPanningActive
volatile bool mPanningActive |
|
private |
◆ mCursorBeforePanning
QCursor mCursorBeforePanning |
|
private |
◆ sZoomStepFactor
constexpr qreal sZoomStepFactor = 1.3 |
|
staticprivate |
The documentation for this class was generated from the following files: