QGraphicsView¶
- PyQt5.QtWidgets.QGraphicsView
Inherits from QAbstractScrollArea.
Inherited by QChartView.
Description¶
TODO
Classes¶
Enums¶
- CacheModeFlag
TODO
Member
Value
Description
CacheBackground TODO
TODO
CacheNone TODO
TODO
- DragMode
TODO
Member
Value
Description
NoDrag TODO
TODO
RubberBandDrag TODO
TODO
ScrollHandDrag TODO
TODO
- OptimizationFlag
TODO
Member
Value
Description
DontAdjustForAntialiasing TODO
TODO
DontClipPainter TODO
TODO
DontSavePainterState TODO
TODO
- ViewportAnchor
TODO
Member
Value
Description
AnchorUnderMouse TODO
TODO
AnchorViewCenter TODO
TODO
NoAnchor TODO
TODO
- ViewportUpdateMode
TODO
Member
Value
Description
BoundingRectViewportUpdate TODO
TODO
FullViewportUpdate TODO
TODO
MinimalViewportUpdate TODO
TODO
NoViewportUpdate TODO
TODO
SmartViewportUpdate TODO
TODO
Methods¶
- __init__(parent: QWidget = None)
TODO
- __init__(QGraphicsScene, parent: QWidget = None)
TODO
- alignment() → Alignment
TODO
- backgroundBrush() → QBrush
TODO
- cacheMode() → CacheMode
TODO
- centerOn(QGraphicsItem)
TODO
- centerOn(float, float)
TODO
- contextMenuEvent(QContextMenuEvent)
TODO
- dragEnterEvent(QDragEnterEvent)
TODO
- dragLeaveEvent(QDragLeaveEvent)
TODO
- dragMode() → DragMode
TODO
- dragMoveEvent(QDragMoveEvent)
TODO
- dropEvent(QDropEvent)
TODO
- ensureVisible(QRectF, xMargin: int = 50, yMargin: int = 50)
TODO
- ensureVisible(QGraphicsItem, xMargin: int = 50, yMargin: int = 50)
TODO
- ensureVisible(float, float, float, float, xMargin: int = 50, yMargin: int = 50)
TODO
- event(QEvent) → bool
TODO
- fitInView(QRectF, mode: AspectRatioMode = IgnoreAspectRatio)
TODO
- fitInView(QGraphicsItem, mode: AspectRatioMode = IgnoreAspectRatio)
TODO
- fitInView(float, float, float, float, mode: AspectRatioMode = IgnoreAspectRatio)
TODO
- focusInEvent(QFocusEvent)
TODO
- focusNextPrevChild(bool) → bool
TODO
- focusOutEvent(QFocusEvent)
TODO
- foregroundBrush() → QBrush
TODO
- inputMethodEvent(QInputMethodEvent)
TODO
- inputMethodQuery(InputMethodQuery) → Any
TODO
- invalidateScene(rect: QRectF = QRectF(), layers: Union[SceneLayers, SceneLayer] = AllLayers)
TODO
- isInteractive() → bool
TODO
- isTransformed() → bool
TODO
- itemAt(QPoint) → QGraphicsItem
TODO
- itemAt(int, int) → QGraphicsItem
TODO
- items() → List[QGraphicsItem]
TODO
- items(QPoint) → List[QGraphicsItem]
TODO
- items(int, int) → List[QGraphicsItem]
TODO
- items(QRect, mode: ItemSelectionMode = IntersectsItemShape) → List[QGraphicsItem]
TODO
- items(QPolygon, mode: ItemSelectionMode = IntersectsItemShape) → List[QGraphicsItem]
TODO
- items(QPainterPath, mode: ItemSelectionMode = IntersectsItemShape) → List[QGraphicsItem]
TODO
- items(int, int, int, int, mode: ItemSelectionMode = IntersectsItemShape) → List[QGraphicsItem]
TODO
- keyPressEvent(QKeyEvent)
TODO
- keyReleaseEvent(QKeyEvent)
TODO
- mapFromScene(QPainterPath) → QPainterPath
TODO
- mapFromScene(float, float) → QPoint
TODO
- mapFromScene(float, float, float, float) → QPolygon
TODO
- mapToScene(QPainterPath) → QPainterPath
TODO
- mapToScene(int, int) → QPointF
TODO
- mapToScene(int, int, int, int) → QPolygonF
TODO
- mouseDoubleClickEvent(QMouseEvent)
TODO
- mouseMoveEvent(QMouseEvent)
TODO
- mousePressEvent(QMouseEvent)
TODO
- mouseReleaseEvent(QMouseEvent)
TODO
- optimizationFlags() → OptimizationFlags
TODO
- paintEvent(QPaintEvent)
TODO
- render(QPainter, target: QRectF = QRectF(), source: QRect = QRect(), mode: AspectRatioMode = KeepAspectRatio)
TODO
- renderHints() → RenderHints
TODO
- resetCachedContent()
TODO
- resetTransform()
TODO
- resizeAnchor() → ViewportAnchor
TODO
- resizeEvent(QResizeEvent)
TODO
- rotate(float)
TODO
- rubberBandRect() → QRect
TODO
- rubberBandSelectionMode() → ItemSelectionMode
TODO
- scale(float, float)
TODO
- scene() → QGraphicsScene
TODO
- sceneRect() → QRectF
TODO
- scrollContentsBy(int, int)
TODO
- setAlignment(Union[Alignment, AlignmentFlag])
TODO
- setBackgroundBrush(Union[QBrush, QColor, GlobalColor, QGradient])
TODO
- setCacheMode(Union[CacheMode, CacheModeFlag])
TODO
- setDragMode(DragMode)
TODO
- setForegroundBrush(Union[QBrush, QColor, GlobalColor, QGradient])
TODO
- setInteractive(bool)
TODO
- setOptimizationFlag(OptimizationFlag, enabled: bool = True)
TODO
- setOptimizationFlags(Union[OptimizationFlags, OptimizationFlag])
TODO
- setRenderHint(RenderHint, on: bool = True)
TODO
- setRenderHints(Union[RenderHints, RenderHint])
TODO
- setResizeAnchor(ViewportAnchor)
TODO
- setRubberBandSelectionMode(ItemSelectionMode)
TODO
- setScene(QGraphicsScene)
TODO
- setSceneRect(QRectF)
TODO
- setSceneRect(float, float, float, float)
TODO
- setTransform(QTransform, combine: bool = False)
TODO
- setTransformationAnchor(ViewportAnchor)
TODO
- setupViewport(QWidget)
TODO
- setViewportUpdateMode(ViewportUpdateMode)
TODO
- shear(float, float)
TODO
- showEvent(QShowEvent)
TODO
- sizeHint() → QSize
TODO
- transform() → QTransform
TODO
- transformationAnchor() → ViewportAnchor
TODO
- translate(float, float)
TODO
- updateScene(Iterable[QRectF])
TODO
- updateSceneRect(QRectF)
TODO
- viewportEvent(QEvent) → bool
TODO
- viewportTransform() → QTransform
TODO
- viewportUpdateMode() → ViewportUpdateMode
TODO
- wheelEvent(QWheelEvent)
TODO