The GraphicsView class.
More...
#include <graphicsview.h>
Inherits QGraphicsView.
◆ GraphicsView() [1/2]
◆ GraphicsView() [2/2]
◆ ~GraphicsView()
◆ getScene()
◆ getVisibleSceneRect()
QRectF getVisibleSceneRect |
( |
| ) |
const |
|
noexcept |
◆ getUseOpenGl()
bool getUseOpenGl |
( |
| ) |
const |
|
inlinenoexcept |
◆ isMouseButtonPressed()
bool isMouseButtonPressed |
( |
Qt::MouseButtons |
btn | ) |
const |
|
inlinenoexcept |
◆ getIdleTimeMs()
qint64 getIdleTimeMs |
( |
| ) |
const |
|
inlinenoexcept |
◆ setSpinnerColor()
void setSpinnerColor |
( |
const QColor & |
color | ) |
|
|
noexcept |
◆ setInfoBoxColors()
void setInfoBoxColors |
( |
const QColor & |
fill, |
|
|
const QColor & |
text |
|
) |
| |
|
noexcept |
◆ setUseOpenGl()
void setUseOpenGl |
( |
bool |
useOpenGl | ) |
|
|
noexcept |
◆ setScene()
◆ setVisibleSceneRect()
void setVisibleSceneRect |
( |
const QRectF & |
rect | ) |
|
|
noexcept |
◆ setInfoBoxText()
void setInfoBoxText |
( |
const QString & |
text | ) |
|
|
noexcept |
◆ setEventHandlerObject()
◆ mapGlobalPosToScenePos()
Point mapGlobalPosToScenePos |
( |
const QPoint & |
globalPosPx | ) |
const |
|
noexcept |
◆ calcPosWithTolerance()
QPainterPath calcPosWithTolerance |
( |
const Point & |
pos, |
|
|
qreal |
multiplier = 1 |
|
) |
| const |
|
noexcept |
◆ handleMouseWheelEvent()
void handleMouseWheelEvent |
( |
QGraphicsSceneWheelEvent * |
event | ) |
|
|
noexcept |
◆ operator=()
◆ zoomIn
◆ zoomOut
◆ zoomAll
◆ zoomToRect
void zoomToRect |
( |
const QRectF & |
rect | ) |
|
|
slotnoexcept |
◆ showWaitingSpinner
void showWaitingSpinner |
( |
| ) |
|
|
slotnoexcept |
◆ hideWaitingSpinner
void hideWaitingSpinner |
( |
| ) |
|
|
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 |
◆ wheelEvent()
void wheelEvent |
( |
QWheelEvent * |
event | ) |
|
|
private |
◆ eventFilter()
bool eventFilter |
( |
QObject * |
obj, |
|
|
QEvent * |
event |
|
) |
| |
|
private |
◆ mWaitingSpinnerWidget
◆ mInfoBoxLabel
QScopedPointer<QLabel> mInfoBoxLabel |
|
private |
◆ mEventHandlerObject
◆ mScene
◆ mZoomAnimation
QVariantAnimation* mZoomAnimation |
|
private |
◆ mUseOpenGl
◆ mPanningActive
volatile bool mPanningActive |
|
private |
◆ mPanningButton
Qt::MouseButton mPanningButton |
|
private |
◆ mPressedMouseButtons
Qt::MouseButtons mPressedMouseButtons |
|
private |
◆ mCursorBeforePanning
QCursor mCursorBeforePanning |
|
private |
◆ mIdleTimeMs
◆ sZoomStepFactor
constexpr qreal sZoomStepFactor = 1.3 |
|
staticconstexprprivate |
The documentation for this class was generated from the following files: