QGraphicsView Class Reference
[QtGui module]
Inherits QAbstractScrollArea.
Inherited by QDeclarativeView.
Types
- class CacheMode
- enum CacheModeFlag { CacheNone, CacheBackground }
- enum DragMode { NoDrag, ScrollHandDrag, RubberBandDrag }
- enum OptimizationFlag { DontClipPainter, DontSavePainterState, DontAdjustForAntialiasing }
- class OptimizationFlags
- enum ViewportAnchor { NoAnchor, AnchorViewCenter, AnchorUnderMouse }
- enum ViewportUpdateMode { FullViewportUpdate, MinimalViewportUpdate, SmartViewportUpdate, BoundingRectViewportUpdate, NoViewportUpdate }
Methods
- __init__ (self, QWidget parent = None)
- __init__ (self, QGraphicsScene, QWidget parent = None)
- Qt.Alignment alignment (self)
- QBrush backgroundBrush (self)
- CacheMode cacheMode (self)
- centerOn (self, QPointF)
- centerOn (self, QGraphicsItem)
- centerOn (self, float, float)
- contextMenuEvent (self, QContextMenuEvent)
- dragEnterEvent (self, QDragEnterEvent)
- dragLeaveEvent (self, QDragLeaveEvent)
- DragMode dragMode (self)
- dragMoveEvent (self, QDragMoveEvent)
- drawBackground (self, QPainter, QRectF)
- drawForeground (self, QPainter, QRectF)
- drawItems (self, QPainter painter, list-of-QGraphicsItem items, list-of-QStyleOptionGraphicsItem options)
- dropEvent (self, QDropEvent)
- ensureVisible (self, QRectF, int xMargin = 50, int yMargin = 50)
- ensureVisible (self, QGraphicsItem, int xMargin = 50, int yMargin = 50)
- ensureVisible (self, float, float, float, float, int xMargin = 50, int yMargin = 50)
- bool event (self, QEvent)
- fitInView (self, QRectF, Qt.AspectRatioMode mode = Qt.IgnoreAspectRatio)
- fitInView (self, QGraphicsItem, Qt.AspectRatioMode mode = Qt.IgnoreAspectRatio)
- fitInView (self, float, float, float, float, Qt.AspectRatioMode mode = Qt.IgnoreAspectRatio)
- focusInEvent (self, QFocusEvent)
- bool focusNextPrevChild (self, bool)
- focusOutEvent (self, QFocusEvent)
- QBrush foregroundBrush (self)
- inputMethodEvent (self, QInputMethodEvent)
- QVariant inputMethodQuery (self, Qt.InputMethodQuery)
- invalidateScene (self, QRectF rect = QRectF(), QGraphicsScene.SceneLayers layers = QGraphicsScene.AllLayers)
- bool isInteractive (self)
- bool isTransformed (self)
- QGraphicsItem itemAt (self, QPoint)
- QGraphicsItem itemAt (self, int, int)
- list-of-QGraphicsItem items (self)
- list-of-QGraphicsItem items (self, QPoint)
- list-of-QGraphicsItem items (self, int, int)
- list-of-QGraphicsItem items (self, int, int, int, int, Qt.ItemSelectionMode mode = Qt.IntersectsItemShape)
- list-of-QGraphicsItem items (self, QRect, Qt.ItemSelectionMode mode = Qt.IntersectsItemShape)
- list-of-QGraphicsItem items (self, QPolygon, Qt.ItemSelectionMode mode = Qt.IntersectsItemShape)
- list-of-QGraphicsItem items (self, QPainterPath, Qt.ItemSelectionMode mode = Qt.IntersectsItemShape)
- keyPressEvent (self, QKeyEvent)
- keyReleaseEvent (self, QKeyEvent)
- QPoint mapFromScene (self, QPointF)
- QPolygon mapFromScene (self, QRectF)
- QPolygon mapFromScene (self, QPolygonF)
- QPainterPath mapFromScene (self, QPainterPath)
- QPoint mapFromScene (self, float, float)
- QPolygon mapFromScene (self, float, float, float, float)
- QPointF mapToScene (self, QPoint)
- QPolygonF mapToScene (self, QRect)
- QPolygonF mapToScene (self, QPolygon)
- QPainterPath mapToScene (self, QPainterPath)
- QPointF mapToScene (self, int, int)
- QPolygonF mapToScene (self, int, int, int, int)
- QMatrix matrix (self)
- mouseDoubleClickEvent (self, QMouseEvent)
- mouseMoveEvent (self, QMouseEvent)
- mousePressEvent (self, QMouseEvent)
- mouseReleaseEvent (self, QMouseEvent)
- OptimizationFlags optimizationFlags (self)
- paintEvent (self, QPaintEvent)
- render (self, QPainter, QRectF target = QRectF(), QRect source = QRect(), Qt.AspectRatioMode mode = Qt.KeepAspectRatio)
- QPainter.RenderHints renderHints (self)
- resetCachedContent (self)
- resetMatrix (self)
- resetTransform (self)
- ViewportAnchor resizeAnchor (self)
- resizeEvent (self, QResizeEvent)
- rotate (self, float)
- Qt.ItemSelectionMode rubberBandSelectionMode (self)
- scale (self, float, float)
- QGraphicsScene scene (self)
- QRectF sceneRect (self)
- scrollContentsBy (self, int, int)
- setAlignment (self, Qt.Alignment)
- setBackgroundBrush (self, QBrush)
- setCacheMode (self, CacheMode)
- setDragMode (self, DragMode)
- setForegroundBrush (self, QBrush)
- setInteractive (self, bool)
- setMatrix (self, QMatrix, bool combine = False)
- setOptimizationFlag (self, OptimizationFlag, bool enabled = True)
- setOptimizationFlags (self, OptimizationFlags)
- setRenderHint (self, QPainter.RenderHint, bool on = True)
- setRenderHints (self, QPainter.RenderHints)
- setResizeAnchor (self, ViewportAnchor)
- setRubberBandSelectionMode (self, Qt.ItemSelectionMode)
- setScene (self, QGraphicsScene)
- setSceneRect (self, QRectF)
- setSceneRect (self, float, float, float, float)
- setTransform (self, QTransform, bool combine = False)
- setTransformationAnchor (self, ViewportAnchor)
- setupViewport (self, QWidget)
- setViewportUpdateMode (self, ViewportUpdateMode)
- shear (self, float, float)
- showEvent (self, QShowEvent)
- QSize sizeHint (self)
- QTransform transform (self)
- ViewportAnchor transformationAnchor (self)
- translate (self, float, float)
- updateScene (self, list-of-QRectF)
- updateSceneRect (self, QRectF)
- bool viewportEvent (self, QEvent)
- QTransform viewportTransform (self)
- ViewportUpdateMode viewportUpdateMode (self)
- wheelEvent (self, QWheelEvent)
Detailed Description
Type Documentation
QGraphicsView.CacheModeFlag
QGraphicsView.DragMode
QGraphicsView.OptimizationFlag
QGraphicsView.ViewportAnchor
QGraphicsView.ViewportUpdateMode
Method Documentation
QGraphicsView.__init__ (self, QWidget parent = None)
The parent argument, if not None, causes self to be owned by Qt instead of PyQt.
QGraphicsView.__init__ (self, QGraphicsScene, QWidget parent = None)
The parent argument, if not None, causes self to be owned by Qt instead of PyQt.
Qt.Alignment QGraphicsView.alignment (self)
QBrush QGraphicsView.backgroundBrush (self)
CacheMode QGraphicsView.cacheMode (self)
QGraphicsView.centerOn (self, QPointF)
QGraphicsView.centerOn (self, QGraphicsItem)
QGraphicsView.centerOn (self, float, float)
QGraphicsView.contextMenuEvent (self, QContextMenuEvent)
QGraphicsView.dragEnterEvent (self, QDragEnterEvent)
QGraphicsView.dragLeaveEvent (self, QDragLeaveEvent)
DragMode QGraphicsView.dragMode (self)
QGraphicsView.dragMoveEvent (self, QDragMoveEvent)
QGraphicsView.drawBackground (self, QPainter, QRectF)
QGraphicsView.drawForeground (self, QPainter, QRectF)
QGraphicsView.drawItems (self, QPainter painter, list-of-QGraphicsItem items, list-of-QStyleOptionGraphicsItem options)
QGraphicsView.dropEvent (self, QDropEvent)
QGraphicsView.ensureVisible (self, QRectF, int xMargin = 50, int yMargin = 50)
QGraphicsView.ensureVisible (self, QGraphicsItem, int xMargin = 50, int yMargin = 50)
QGraphicsView.ensureVisible (self, float, float, float, float, int xMargin = 50, int yMargin = 50)
bool QGraphicsView.event (self, QEvent)
QGraphicsView.fitInView (self, QRectF, Qt.AspectRatioMode mode = Qt.IgnoreAspectRatio)
QGraphicsView.fitInView (self, float, float, float, float, Qt.AspectRatioMode mode = Qt.IgnoreAspectRatio)
QGraphicsView.focusInEvent (self, QFocusEvent)
bool QGraphicsView.focusNextPrevChild (self, bool)
QGraphicsView.focusOutEvent (self, QFocusEvent)
QBrush QGraphicsView.foregroundBrush (self)
QGraphicsView.inputMethodEvent (self, QInputMethodEvent)
QVariant QGraphicsView.inputMethodQuery (self, Qt.InputMethodQuery)
QGraphicsView.invalidateScene (self, QRectF rect = QRectF(), QGraphicsScene.SceneLayers layers = QGraphicsScene.AllLayers)
This method is also a Qt slot with the C++ signature void invalidateScene(const QRectF& = QRectF(),QGraphicsScene::SceneLayers = QGraphicsScene.AllLayers).
bool QGraphicsView.isInteractive (self)
bool QGraphicsView.isTransformed (self)
QGraphicsItem QGraphicsView.itemAt (self, int, int)
list-of-QGraphicsItem QGraphicsView.items (self)
list-of-QGraphicsItem QGraphicsView.items (self, QPoint)
list-of-QGraphicsItem QGraphicsView.items (self, int, int)
list-of-QGraphicsItem QGraphicsView.items (self, int, int, int, int, Qt.ItemSelectionMode mode = Qt.IntersectsItemShape)
list-of-QGraphicsItem QGraphicsView.items (self, QRect, Qt.ItemSelectionMode mode = Qt.IntersectsItemShape)
list-of-QGraphicsItem QGraphicsView.items (self, QPolygon, Qt.ItemSelectionMode mode = Qt.IntersectsItemShape)
list-of-QGraphicsItem QGraphicsView.items (self, QPainterPath, Qt.ItemSelectionMode mode = Qt.IntersectsItemShape)
QGraphicsView.keyPressEvent (self, QKeyEvent)
QGraphicsView.keyReleaseEvent (self, QKeyEvent)
QPoint QGraphicsView.mapFromScene (self, QPointF)
QPolygon QGraphicsView.mapFromScene (self, QRectF)
QPolygon QGraphicsView.mapFromScene (self, QPolygonF)
QPoint QGraphicsView.mapFromScene (self, float, float)
QPolygon QGraphicsView.mapFromScene (self, float, float, float, float)
QPointF QGraphicsView.mapToScene (self, QPoint)
QPolygonF QGraphicsView.mapToScene (self, QRect)
QPointF QGraphicsView.mapToScene (self, int, int)
QPolygonF QGraphicsView.mapToScene (self, int, int, int, int)
QMatrix QGraphicsView.matrix (self)
QGraphicsView.mouseDoubleClickEvent (self, QMouseEvent)
QGraphicsView.mouseMoveEvent (self, QMouseEvent)
QGraphicsView.mousePressEvent (self, QMouseEvent)
QGraphicsView.mouseReleaseEvent (self, QMouseEvent)
OptimizationFlags QGraphicsView.optimizationFlags (self)
QGraphicsView.paintEvent (self, QPaintEvent)
QGraphicsView.render (self, QPainter, QRectF target = QRectF(), QRect source = QRect(), Qt.AspectRatioMode mode = Qt.KeepAspectRatio)
QGraphicsView.resetCachedContent (self)
QGraphicsView.resetMatrix (self)
QGraphicsView.resetTransform (self)
ViewportAnchor QGraphicsView.resizeAnchor (self)
QGraphicsView.resizeEvent (self, QResizeEvent)
QGraphicsView.rotate (self, float)
Qt.ItemSelectionMode QGraphicsView.rubberBandSelectionMode (self)
QGraphicsView.scale (self, float, float)
QRectF QGraphicsView.sceneRect (self)
QGraphicsView.scrollContentsBy (self, int, int)
QGraphicsView.setAlignment (self, Qt.Alignment)
QGraphicsView.setBackgroundBrush (self, QBrush)
QGraphicsView.setCacheMode (self, CacheMode)
QGraphicsView.setDragMode (self, DragMode)
QGraphicsView.setForegroundBrush (self, QBrush)
QGraphicsView.setInteractive (self, bool)
QGraphicsView.setMatrix (self, QMatrix, bool combine = False)
QGraphicsView.setOptimizationFlag (self, OptimizationFlag, bool enabled = True)
QGraphicsView.setOptimizationFlags (self, OptimizationFlags)
QGraphicsView.setRenderHint (self, QPainter.RenderHint, bool on = True)
QGraphicsView.setResizeAnchor (self, ViewportAnchor)
QGraphicsView.setRubberBandSelectionMode (self, Qt.ItemSelectionMode)
QGraphicsView.setScene (self, QGraphicsScene)
QGraphicsView.setSceneRect (self, QRectF)
QGraphicsView.setSceneRect (self, float, float, float, float)
QGraphicsView.setTransform (self, QTransform, bool combine = False)
QGraphicsView.setTransformationAnchor (self, ViewportAnchor)
QGraphicsView.setupViewport (self, QWidget)
This method is also a Qt slot with the C++ signature void setupViewport(QWidget *).
QGraphicsView.setViewportUpdateMode (self, ViewportUpdateMode)
QGraphicsView.shear (self, float, float)
QGraphicsView.showEvent (self, QShowEvent)
QSize QGraphicsView.sizeHint (self)
QTransform QGraphicsView.transform (self)
ViewportAnchor QGraphicsView.transformationAnchor (self)
QGraphicsView.translate (self, float, float)
QGraphicsView.updateScene (self, list-of-QRectF)
This method is also a Qt slot with the C++ signature void updateScene(const QList<QRectF>&).
QGraphicsView.updateSceneRect (self, QRectF)
This method is also a Qt slot with the C++ signature void updateSceneRect(const QRectF&).
bool QGraphicsView.viewportEvent (self, QEvent)
QTransform QGraphicsView.viewportTransform (self)
ViewportUpdateMode QGraphicsView.viewportUpdateMode (self)
QGraphicsView.wheelEvent (self, QWheelEvent)