Skip to content

PythonQt.Qt.QGraphicsView

QGraphicsView

PythonQtInstanceWrapper object

Native bases: PythonQtInstanceWrapper

Supplemental documentation: Qt 5 reference:

Detailed Description

QGraphicsView visualizes the contents of a QGraphicsScene in a scrollable viewport. To create a scene with geometrical items, see QGraphicsScene's documentation. QGraphicsView is part of the Graphics View Framework.

To visualize a scene, you start by constructing a QGraphicsView object, passing the address of the scene you want to visualize to QGraphicsView's constructor. Alternatively, you can call setScene() to set the scene at a later point. After you call show(), the view will by default scroll to the center of the scene and display any items that are visible at this point. For example:

QGraphicsScene scene;
scene.addText("Hello, world!");

QGraphicsView view(&scene);
view.show();

You can explicitly scroll to any position on the scene by using the scroll bars, or by calling centerOn(). By passing a point to centerOn(), QGraphicsView will scroll its viewport to ensure that the point is centered in the view. An overload is provided for scrolling to a QGraphicsItem, in which case QGraphicsView will see to that the center of the item is centered in the view. If all you want is to ensure that a certain area is visible, (but not necessarily centered,) you can call ensureVisible() instead.

QGraphicsView can be used to visualize a whole scene, or only parts of it. The visualized area is by default detected automatically when the view is displayed for the first time (by calling QGraphicsScene::itemsBoundingRect()). To set the visualized area rectangle yourself, you can call setSceneRect(). This will adjust the scroll bars' ranges appropriately. Note that although the scene supports a virtually unlimited size, the range of the scroll bars will never exceed the range of an integer (INT_MIN, INT_MAX).

QGraphicsView visualizes the scene by calling render(). By default, the items are drawn onto the viewport by using a regular QPainter, and using default render hints. To change the default render hints that QGraphicsView passes to QPainter when painting items, you can call setRenderHints().

By default, QGraphicsView provides a regular QWidget for the viewport widget. You can access this widget by calling viewport(), or you can replace it by calling setViewport(). To render using OpenGL, simply call setViewport(new QOpenGLWidget). QGraphicsView takes ownership of the viewport widget.

QGraphicsView supports affine transformations, using QTransform. You can either pass a matrix to setTransform(), or you can call one of the convenience functions rotate(), scale(), translate() or shear(). The most two common transformations are scaling, which is used to implement zooming, and rotation. QGraphicsView keeps the center of the view fixed during a transformation. Because of the scene alignment (setAligment()), translating the view will have no visual impact.

You can interact with the items on the scene by using the mouse and keyboard. QGraphicsView translates the mouse and key events into scene events, (events that inherit QGraphicsSceneEvent,), and forward them to the visualized scene. In the end, it's the individual item that handles the events and reacts to them. For example, if you click on a selectable item, the item will typically let the scene know that it has been selected, and it will also redraw itself to display a selection rectangle. Similarly, if you click and drag the mouse to move a movable item, it's the item that handles the mouse moves and moves itself. Item interaction is enabled by default, and you can toggle it by calling setInteractive().

You can also provide your own custom scene interaction, by creating a subclass of QGraphicsView, and reimplementing the mouse and key event handlers. To simplify how you programmatically interact with items in the view, QGraphicsView provides the mapping functions mapToScene() and mapFromScene(), and the item accessors items() and itemAt(). These functions allow you to map points, rectangles, polygons and paths between view coordinates and scene coordinates, and to find items on the scene using view coordinates.

Note: Using an OpenGL viewport limits the ability to use QGraphicsProxyWidget. Not all combinations of widgets and styles can be supported with such a setup. You should carefully test your UI and make the necessary adjustments.

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsview.html

Complete member index

Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.

Member Kind Signature Summary
AdjustIgnored attribute Any (shared captured text)
AdjustToContents attribute Any (shared captured text)
AdjustToContentsOnFirstShow attribute Any (shared captured text)
AnchorUnderMouse attribute Any (shared captured text)
AnchorViewCenter attribute Any (shared captured text)
BoundingRectViewportUpdate attribute Any (shared captured text)
Box attribute Any (shared captured text)
CacheBackground attribute Any (shared captured text)
CacheMode attribute type Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text)
CacheModeFlag attribute type Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text)
CacheNone attribute Any (shared captured text)
DontAdjustForAntialiasing attribute Any (shared captured text)
DontClipPainter attribute Any (shared captured text)
DontSavePainterState attribute Any (shared captured text)
DragMode attribute type Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text)
DrawChildren attribute Any (shared captured text)
DrawWindowBackground attribute Any (shared captured text)
FullViewportUpdate attribute Any (shared captured text)
HLine attribute Any (shared captured text)
IgnoreMask attribute Any (shared captured text)
IndirectPainting attribute Any (shared captured text)
MinimalViewportUpdate attribute Any (shared captured text)
NoAnchor attribute Any (shared captured text)
NoDrag attribute Any (shared captured text)
NoFrame attribute Any (shared captured text)
NoViewportUpdate attribute Any (shared captured text)
OptimizationFlag attribute type Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text)
OptimizationFlags attribute type Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text)
PaintDeviceMetric attribute type Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text)
Panel attribute Any (shared captured text)
PdmDepth attribute Any (shared captured text)
PdmDevicePixelRatio attribute Any (shared captured text)
PdmDevicePixelRatioScaled attribute Any (shared captured text)
PdmDpiX attribute Any (shared captured text)
PdmDpiY attribute Any (shared captured text)
PdmHeight attribute Any (shared captured text)
PdmHeightMM attribute Any (shared captured text)
PdmNumColors attribute Any (shared captured text)
PdmPhysicalDpiX attribute Any (shared captured text)
PdmPhysicalDpiY attribute Any (shared captured text)
PdmWidth attribute Any (shared captured text)
PdmWidthMM attribute Any (shared captured text)
Plain attribute Any (shared captured text)
Raised attribute Any (shared captured text)
RenderFlag attribute type Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text)
RenderFlags attribute type Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text)
RubberBandDrag attribute Any (shared captured text)
ScrollHandDrag attribute Any (shared captured text)
Shadow attribute type Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text)
Shadow_Mask attribute Any (shared captured text)
Shape attribute type Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text)
Shape_Mask attribute Any (shared captured text)
SizeAdjustPolicy attribute type Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text)
SmartViewportUpdate attribute Any (shared captured text)
StyleMask attribute type Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text)
StyledPanel attribute Any (shared captured text)
Sunken attribute Any (shared captured text)
VLine attribute Any (shared captured text)
ViewportAnchor attribute type Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text)
ViewportUpdateMode attribute type Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text)
WinPanel attribute Any (shared captured text)
__init__ function (self, *args: Any, **kwargs: Any) -> None Native constructor; consult class documentation for supported overloads. (shared captured text)
acceptDrops attribute Any (shared captured text)
accessibleDescription attribute Any (shared captured text)
accessibleName attribute Any (shared captured text)
actionEvent function (self, event: Any) -> Any (shared captured text)
actions function (self) -> tuple X.actions() -> tuple (shared captured text)
activateWindow function (self) -> Any (shared captured text)
addAction function (self, action: Any) -> Any (shared captured text)
addActions function (self, actions: Any) -> Any (shared captured text)
addScrollBarWidget function (self, widget: Any, alignment: Any) -> Any X.addScrollBarWidget(widget, alignment) (shared captured text)
adjustSize function (self) -> Any (shared captured text)
alignment attribute Any This property holds the alignment of the scene in the view when the whole scene is visible. (shared captured text)
autoFillBackground attribute Any (shared captured text)
backgroundBrush attribute QBrush This property holds the background brush of the scene. (shared captured text)
backgroundRole function (self) -> Any (shared captured text)
backingStore function (self) -> Any X.backingStore() -> PythonQt.QtGui.QBackingStore (shared captured text)
baseSize attribute QSize (shared captured text)
blockSignals function (self, b: Any) -> bool X.blockSignals(b) -> bool (shared captured text)
cacheMode attribute Any This property holds which parts of the view are cached (shared captured text)
centerOn function (self, x: Any, y: Any) -> None X.centerOn(x, y) (shared captured text)
changeEvent function (self, arg__1: Any) -> Any (shared captured text)
childAt function (self, x: Any, y: Any) -> Any X.childAt(x, y) -> PythonQt.QtGui.QWidget (shared captured text)
childEvent function (self, event: Any) -> Any (shared captured text)
children function (self) -> tuple X.children() -> tuple (shared captured text)
childrenRect attribute QRect (shared captured text)
childrenRegion attribute QRegion (shared captured text)
className function (self, *args: Any, **kwargs: Any) -> Any Return the classname of the object (shared captured text)
clearFocus function (self) -> Any (shared captured text)
clearMask function (self) -> Any (shared captured text)
close function (self) -> bool X.close() -> bool (shared captured text)
closeEvent function (self, event: Any) -> Any (shared captured text)
colorCount function (self) -> int X.colorCount() -> int (shared captured text)
connect function (self, signal: Any, receiver: Any, slot: Any, type: Any) -> bool X.connect(signal, receiver, slot, type) -> bool (shared captured text)
contentsMargins function (self) -> Any X.contentsMargins() -> PythonQt.QtGui.QMargins (shared captured text)
contentsRect function (self) -> Any X.contentsRect() -> PythonQt.QtCore.QRect (shared captured text)
contextMenuEvent function (self, event: Any) -> None Reimplements: [QAbstractScrollArea::contextMenuEvent](https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#contextMenuEvent)(QContextMenuEvent *e). (shared captured text)
contextMenuPolicy attribute Any (shared captured text)
cornerWidget function (self) -> Any X.cornerWidget() -> PythonQt.QtGui.QWidget (shared captured text)
createWinId function (self) -> Any (shared captured text)
createWindowContainer function (self, window: Any, parent: Any, arg2: flags) -> Any X.createWindowContainer(window, parent, flags) -> PythonQt.QtGui.QWidget (shared captured text)
cursor attribute QCursor (shared captured text)
customContextMenuRequested function (self, *args: Any, **kwargs: Any) -> Any Native PythonQt.Qt.QGraphicsView.customContextMenuRequested; argument details are not documented.
customEvent function (self, event: Any) -> Any (shared captured text)
delete function (self, *args: Any, **kwargs: Any) -> Any Deletes the C++ object (at your own risk, my friend!) (shared captured text)
deleteLater function (self) -> Any (shared captured text)
depth function (self) -> int X.depth() -> int (shared captured text)
destroy function (self, destroyWindow: Any, destroySubWindows: Any) -> Any X.destroy(destroyWindow, destroySubWindows) (shared captured text)
destroyed function (self, *args: Any, **kwargs: Any) -> Any Native PythonQt.Qt.QGraphicsView.destroyed; argument details are not documented.
devType function (self) -> int X.devType() -> int (shared captured text)
devicePixelRatio function (self) -> int X.devicePixelRatio() -> int (shared captured text)
devicePixelRatioF function (self) -> float X.devicePixelRatioF() -> float (shared captured text)
devicePixelRatioFScale function (self) -> float X.devicePixelRatioFScale() -> float (shared captured text)
disconnect function (self, signal: Any, receiver: Any, slot: Any) -> bool X.disconnect(signal, receiver, slot) -> bool (shared captured text)
dragEnterEvent function (self, event: Any) -> None Reimplements: [QAbstractScrollArea::dragEnterEvent](https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#dragEnterEvent)(QDragEnterEvent *event). (shared captured text)
dragLeaveEvent function (self, event: Any) -> None Reimplements: [QAbstractScrollArea::dragLeaveEvent](https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#dragLeaveEvent)(QDragLeaveEvent *event). (shared captured text)
dragMode attribute Any This property holds the behavior for dragging the mouse over the scene while the left mouse button is pressed. (shared captured text)
dragMoveEvent function (self, event: Any) -> None Reimplements: [QAbstractScrollArea::dragMoveEvent](https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#dragMoveEvent)(QDragMoveEvent *event). (shared captured text)
drawBackground function (self, painter: Any, rect: Any) -> None X.drawBackground(painter, rect) (shared captured text)
drawForeground function (self, painter: Any, rect: Any) -> None X.drawForeground(painter, rect) (shared captured text)
drawFrame function (self, arg__1: Any) -> Any (shared captured text)
drawItems function (self, painter: Any, numItems: int, items: Any, options: Any) -> None X.drawItems(painter, numItems, items, options) (shared captured text)
dropEvent function (self, event: Any) -> None Reimplements: [QAbstractScrollArea::dropEvent](https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#dropEvent)(QDropEvent *event). (shared captured text)
dumpObjectInfo function (self) -> Any (shared captured text)
dumpObjectTree function (self) -> Any (shared captured text)
dynamicPropertyNames function (self) -> Any (shared captured text)
effectiveWinId function (self) -> int X.effectiveWinId() -> int (shared captured text)
enabled attribute Any (shared captured text)
ensurePolished function (self) -> Any (shared captured text)
ensureVisible function (self, x: Any, y: Any, w: Any, h: Any, xmargin: int, ymargin: int) -> None X.ensureVisible(x, y, w, h, xmargin, ymargin) (shared captured text)
enterEvent function (self, event: Any) -> Any (shared captured text)
event function (self, event: Any) -> bool X.event(event) -> bool (shared captured text)
eventFilter function (self, arg__1: Any, arg__2: Any) -> bool X.eventFilter(arg__1, arg__2) -> bool (shared captured text)
findChild function (self, type: Any, name: Any) -> Any X.findChild(type, name) -> PythonQt.private.QObject (shared captured text)
findChildren function (self, type: Any, name: Any) -> tuple X.findChildren(type, name) -> tuple (shared captured text)
fitInView function (self, x: Any, y: Any, w: Any, h: Any, aspectRadioMode: Any) -> None X.fitInView(x, y, w, h, aspectRadioMode) (shared captured text)
focus attribute Any (shared captured text)
focusInEvent function (self, event: Any) -> None Reimplements: [QWidget::focusInEvent](https://doc.qt.io/archives/qt-5.15/qwidget.html#focusInEvent)(QFocusEvent *event). (shared captured text)
focusNextChild function (self) -> bool X.focusNextChild() -> bool (shared captured text)
focusNextPrevChild function (self, next: bool) -> bool X.focusNextPrevChild(next) -> bool (shared captured text)
focusOutEvent function (self, event: Any) -> None Reimplements: [QWidget::focusOutEvent](https://doc.qt.io/archives/qt-5.15/qwidget.html#focusOutEvent)(QFocusEvent *event). (shared captured text)
focusPolicy attribute Any (shared captured text)
focusPreviousChild function (self) -> bool X.focusPreviousChild() -> bool (shared captured text)
focusProxy function (self) -> Any X.focusProxy() -> PythonQt.QtGui.QWidget (shared captured text)
focusWidget function (self) -> Any X.focusWidget() -> PythonQt.QtGui.QWidget (shared captured text)
font attribute QFont (shared captured text)
fontInfo function (self) -> Any X.fontInfo() -> PythonQt.QtGui.QFontInfo (shared captured text)
fontMetrics function (self) -> Any X.fontMetrics() -> PythonQt.QtGui.QFontMetrics (shared captured text)
foregroundBrush attribute QBrush This property holds the foreground brush of the scene. (shared captured text)
foregroundRole function (self) -> Any (shared captured text)
frameGeometry attribute QRect (shared captured text)
frameRect attribute QRect (shared captured text)
frameShadow attribute Any (shared captured text)
frameShape attribute Any (shared captured text)
frameSize attribute QSize (shared captured text)
frameStyle function (self) -> int X.frameStyle() -> int (shared captured text)
frameWidth attribute Any (shared captured text)
fullScreen attribute Any (shared captured text)
geometry attribute QRect (shared captured text)
grab function (self, rectangle: Any) -> Any X.grab(rectangle) -> PythonQt.QtGui.QPixmap (shared captured text)
grabGesture function (self, type: Any, arg1: flags) -> Any X.grabGesture(type, flags) (shared captured text)
grabKeyboard function (self) -> Any (shared captured text)
grabMouse function (self, arg__1: Any) -> Any (shared captured text)
grabShortcut function (self, key: Any, context: Any) -> int X.grabShortcut(key, context) -> int (shared captured text)
graphicsEffect function (self) -> Any X.graphicsEffect() -> PythonQt.QtGui.QGraphicsEffect (shared captured text)
graphicsProxyWidget function (self) -> Any X.graphicsProxyWidget() -> PythonQt.QtGui.QGraphicsProxyWidget (shared captured text)
hasFocus function (self) -> bool X.hasFocus() -> bool (shared captured text)
hasHeightForWidth function (self) -> bool X.hasHeightForWidth() -> bool (shared captured text)
hasMouseTracking function (self) -> bool X.hasMouseTracking() -> bool (shared captured text)
height attribute Any (shared captured text)
heightForWidth function (self, arg__1: Any) -> int X.heightForWidth(arg__1) -> int (shared captured text)
heightMM function (self) -> int X.heightMM() -> int (shared captured text)
help function (self, *args: Any, **kwargs: Any) -> Any Shows the help of available methods for this class (shared captured text)
hide function (self) -> Any (shared captured text)
hideEvent function (self, event: Any) -> Any (shared captured text)
horizontalScrollBar function (self) -> Any X.horizontalScrollBar() -> PythonQt.QtGui.QScrollBar (shared captured text)
horizontalScrollBarPolicy attribute Any (shared captured text)
inherits function (self, *args: Any, **kwargs: Any) -> Any Returns if the class inherits or is of given type name (shared captured text)
initPainter function (self, painter: Any) -> Any (shared captured text)
initStyleOption function (self, option: Any) -> Any (shared captured text)
inputMethodEvent function (self, event: Any) -> None Reimplements: [QWidget::inputMethodEvent](https://doc.qt.io/archives/qt-5.15/qwidget.html#inputMethodEvent)(QInputMethodEvent *event). (shared captured text)
inputMethodHints attribute Any (shared captured text)
inputMethodQuery function (self, query: Any) -> Any X.inputMethodQuery(query) -> object (shared captured text)
insertAction function (self, before: Any, action: Any) -> Any X.insertAction(before, action) (shared captured text)
insertActions function (self, before: Any, actions: Any) -> Any X.insertActions(before, actions) (shared captured text)
installEventFilter function (self, filterObj: Any) -> Any (shared captured text)
interactive attribute Any This property holds whether the view allows scene interaction. (shared captured text)
invalidateScene function (self, rect: Any, layers: Any) -> None X.invalidateScene(rect, layers) (shared captured text)
isActiveWindow attribute Any (shared captured text)
isAncestorOf function (self, child: Any) -> bool X.isAncestorOf(child) -> bool (shared captured text)
isEnabled function (self) -> bool X.isEnabled() -> bool (shared captured text)
isEnabledTo function (self, arg__1: Any) -> bool X.isEnabledTo(arg__1) -> bool (shared captured text)
isFullScreen function (self) -> bool X.isFullScreen() -> bool (shared captured text)
isHidden function (self) -> bool X.isHidden() -> bool (shared captured text)
isInteractive function (self) -> bool X.isInteractive() -> bool (shared captured text)
isLeftToRight function (self) -> bool X.isLeftToRight() -> bool (shared captured text)
isMaximized function (self) -> bool X.isMaximized() -> bool (shared captured text)
isMinimized function (self) -> bool X.isMinimized() -> bool (shared captured text)
isModal function (self) -> bool X.isModal() -> bool (shared captured text)
isRightToLeft function (self) -> bool X.isRightToLeft() -> bool (shared captured text)
isSignalConnected function (self, signal: Any) -> bool X.isSignalConnected(signal) -> bool (shared captured text)
isTransformed function (self) -> bool X.isTransformed() -> bool (shared captured text)
isVisible function (self) -> bool X.isVisible() -> bool (shared captured text)
isVisibleTo function (self, arg__1: Any) -> bool X.isVisibleTo(arg__1) -> bool (shared captured text)
isWidgetType function (self) -> bool X.isWidgetType() -> bool (shared captured text)
isWindow function (self) -> bool X.isWindow() -> bool (shared captured text)
isWindowModified function (self) -> bool X.isWindowModified() -> bool (shared captured text)
isWindowType function (self) -> bool X.isWindowType() -> bool (shared captured text)
itemAt function (self, x: Any, y: Any) -> Any X.itemAt(x, y) -> PythonQt.QtGui.QGraphicsItem (shared captured text)
items function (self, x: Any, y: Any, w: Any, h: Any, mode: Any) -> tuple X.items(x, y, w, h, mode) -> tuple (shared captured text)
keyPressEvent function (self, event: Any) -> None Reimplements: [QAbstractScrollArea::keyPressEvent](https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#keyPressEvent)(QKeyEvent *e). (shared captured text)
keyReleaseEvent function (self, event: Any) -> None Reimplements: [QWidget::keyReleaseEvent](https://doc.qt.io/archives/qt-5.15/qwidget.html#keyReleaseEvent)(QKeyEvent *event). (shared captured text)
keyboardGrabber function (self) -> Any X.keyboardGrabber() -> PythonQt.QtGui.QWidget (shared captured text)
killTimer function (self, id: Any) -> Any (shared captured text)
layout function (self) -> Any X.layout() -> PythonQt.QtGui.QLayout (shared captured text)
layoutDirection attribute Any (shared captured text)
leaveEvent function (self, event: Any) -> Any (shared captured text)
lineWidth attribute Any (shared captured text)
locale attribute QLocale (shared captured text)
logicalDpiX function (self) -> int X.logicalDpiX() -> int (shared captured text)
logicalDpiY function (self) -> int X.logicalDpiY() -> int (shared captured text)
lower function (self) -> Any (shared captured text)
mapFrom function (self, arg__1: Any, arg__2: Any) -> Any X.mapFrom(arg__1, arg__2) -> PythonQt.QtCore.QPoint (shared captured text)
mapFromGlobal function (self, arg__1: Any) -> Any X.mapFromGlobal(arg__1) -> PythonQt.QtCore.QPoint (shared captured text)
mapFromParent function (self, arg__1: Any) -> Any X.mapFromParent(arg__1) -> PythonQt.QtCore.QPoint (shared captured text)
mapFromScene function (self, x: Any, y: Any, w: Any, h: Any) -> Any X.mapFromScene(x, y, w, h) -> PythonQt.QtGui.QPainterPath (shared captured text)
mapTo function (self, arg__1: Any, arg__2: Any) -> Any X.mapTo(arg__1, arg__2) -> PythonQt.QtCore.QPoint (shared captured text)
mapToGlobal function (self, arg__1: Any) -> Any X.mapToGlobal(arg__1) -> PythonQt.QtCore.QPoint (shared captured text)
mapToParent function (self, arg__1: Any) -> Any X.mapToParent(arg__1) -> PythonQt.QtCore.QPoint (shared captured text)
mapToScene function (self, x: Any, y: Any, w: Any, h: Any) -> Any X.mapToScene(x, y, w, h) -> PythonQt.QtGui.QPainterPath (shared captured text)
mask function (self) -> Any X.mask() -> PythonQt.QtGui.QRegion (shared captured text)
matrix function (self) -> Any X.matrix() -> PythonQt.QtGui.QMatrix (shared captured text)
maximized attribute Any (shared captured text)
maximumHeight attribute Any (shared captured text)
maximumSize attribute QSize (shared captured text)
maximumViewportSize function (self) -> Any X.maximumViewportSize() -> PythonQt.QtCore.QSize (shared captured text)
maximumWidth attribute Any (shared captured text)
metaObject function (self) -> Any X.metaObject() -> PythonQt.QtCore.QMetaObject (shared captured text)
metric function (self, arg__1: Any) -> int X.metric(arg__1) -> int (shared captured text)
midLineWidth attribute Any (shared captured text)
minimized attribute Any (shared captured text)
minimumHeight attribute Any (shared captured text)
minimumSize attribute QSize (shared captured text)
minimumSizeHint attribute QSize (shared captured text)
minimumWidth attribute Any (shared captured text)
modal attribute Any (shared captured text)
mouseDoubleClickEvent function (self, event: Any) -> None Reimplements: [QAbstractScrollArea::mouseDoubleClickEvent](https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#mouseDoubleClickEvent)(QMouseEvent *e). (shared captured text)
mouseGrabber function (self) -> Any X.mouseGrabber() -> PythonQt.QtGui.QWidget (shared captured text)
mouseMoveEvent function (self, event: Any) -> None Reimplements: [QAbstractScrollArea::mouseMoveEvent](https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#mouseMoveEvent)(QMouseEvent *e). (shared captured text)
mousePressEvent function (self, event: Any) -> None Reimplements: [QAbstractScrollArea::mousePressEvent](https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#mousePressEvent)(QMouseEvent *e). (shared captured text)
mouseReleaseEvent function (self, event: Any) -> None Reimplements: [QAbstractScrollArea::mouseReleaseEvent](https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#mouseReleaseEvent)(QMouseEvent *e). (shared captured text)
mouseTracking attribute Any (shared captured text)
move function (self, x: Any, y: Any) -> Any X.move(x, y) (shared captured text)
moveEvent function (self, event: Any) -> Any (shared captured text)
moveToThread function (self, thread: Any) -> Any (shared captured text)
nativeEvent function (self, eventType: Any, message: Any, result: Any) -> bool X.nativeEvent(eventType, message, result) -> bool (shared captured text)
nativeParentWidget function (self) -> Any X.nativeParentWidget() -> PythonQt.QtGui.QWidget (shared captured text)
nextInFocusChain function (self) -> Any X.nextInFocusChain() -> PythonQt.QtGui.QWidget (shared captured text)
normalGeometry attribute QRect (shared captured text)
objectName attribute Any (shared captured text)
objectNameChanged function (self, *args: Any, **kwargs: Any) -> Any Native PythonQt.Qt.QGraphicsView.objectNameChanged; argument details are not documented.
optimizationFlags attribute Any Flags that can be used to tune [QGraphicsView](https://doc.qt.io/archives/qt-5.15/qgraphicsview.html)'s performance. (shared captured text)
overrideWindowFlags function (self, type: Any) -> Any (shared captured text)
overrideWindowState function (self, state: Any) -> Any (shared captured text)
paintEngine function (self) -> Any X.paintEngine() -> PythonQt.QtGui.QPaintEngine (shared captured text)
paintEvent function (self, event: Any) -> None Reimplements: [QAbstractScrollArea::paintEvent](https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#paintEvent)(QPaintEvent *event). (shared captured text)
paintingActive function (self) -> bool X.paintingActive() -> bool (shared captured text)
palette attribute QPalette (shared captured text)
parent function (self) -> Any X.parent() -> PythonQt.private.QObject (shared captured text)
parentWidget function (self) -> Any X.parentWidget() -> PythonQt.QtGui.QWidget (shared captured text)
physicalDpiX function (self) -> int X.physicalDpiX() -> int (shared captured text)
physicalDpiY function (self) -> int X.physicalDpiY() -> int (shared captured text)
pos attribute QPoint (shared captured text)
previousInFocusChain function (self) -> Any X.previousInFocusChain() -> PythonQt.QtGui.QWidget (shared captured text)
property function (self, name: Any) -> Any X.property(name) -> object (shared captured text)
raise_ function (self) -> Any Native spelling: raise; access it through getattr on the native object. (shared captured text)
rect attribute QRect (shared captured text)
redirected function (self, offset: Any) -> Any X.redirected(offset) -> PythonQt.QtGui.QPaintDevice (shared captured text)
releaseKeyboard function (self) -> Any (shared captured text)
releaseMouse function (self) -> Any (shared captured text)
releaseShortcut function (self, id: Any) -> Any (shared captured text)
removeAction function (self, action: Any) -> Any (shared captured text)
removeEventFilter function (self, obj: Any) -> Any (shared captured text)
render function (self, painter: Any, target: Any, source: Any, aspectRatioMode: Any) -> None X.render(painter, target, source, aspectRatioMode) (shared captured text)
renderHints attribute Any This property holds the default render hints for the view (shared captured text)
repaint function (self, x: Any, y: Any, w: Any, h: Any) -> Any X.repaint(x, y, w, h) (shared captured text)
resetCachedContent function (self) -> None Resets any cached content. (shared captured text)
resetMatrix function (self) -> None (shared captured text)
resetTransform function (self) -> None Resets the view transformation to the identity matrix. (shared captured text)
resize function (self, w: Any, h: Any) -> Any X.resize(w, h) (shared captured text)
resizeAnchor attribute Any How the view should position the scene when the view is resized. (shared captured text)
resizeEvent function (self, event: Any) -> None Reimplements: [QAbstractScrollArea::resizeEvent](https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#resizeEvent)(QResizeEvent *event). (shared captured text)
restoreGeometry function (self, geometry: Any) -> bool X.restoreGeometry(geometry) -> bool (shared captured text)
rotate function (self, angle: float) -> None Rotates the current view transformation angle degrees clockwise. (shared captured text)
rubberBandChanged function (self, *args: Any, **kwargs: Any) -> Any Native PythonQt.Qt.QGraphicsView.rubberBandChanged; argument details are not documented.
rubberBandRect function (self) -> Any X.rubberBandRect() -> PythonQt.QtCore.QRect (shared captured text)
rubberBandSelectionMode attribute Any This property holds the behavior for selecting items with a rubber band selection rectangle. (shared captured text)
saveGeometry function (self) -> Any X.saveGeometry() -> PythonQt.QtCore.QByteArray (shared captured text)
scale function (self, sx: float, sy: float) -> None X.scale(sx, sy) (shared captured text)
scene function (self) -> Any X.scene() -> PythonQt.QtGui.QGraphicsScene (shared captured text)
sceneRect attribute QRectF This property holds the area of the scene visualized by this view. (shared captured text)
scroll function (self, dx: Any, dy: Any, arg__3: Any) -> Any X.scroll(dx, dy, arg__3) (shared captured text)
scrollBarWidgets function (self, alignment: Any) -> tuple X.scrollBarWidgets(alignment) -> tuple (shared captured text)
scrollContentsBy function (self, dx: int, dy: int) -> None X.scrollContentsBy(dx, dy) (shared captured text)
sender function (self) -> Any X.sender() -> PythonQt.private.QObject (shared captured text)
senderSignalIndex function (self) -> int X.senderSignalIndex() -> int (shared captured text)
setAcceptDrops function (self, on: Any) -> Any (shared captured text)
setAccessibleDescription function (self, description: Any) -> Any (shared captured text)
setAccessibleName function (self, name: Any) -> Any (shared captured text)
setAlignment function (self, alignment: Any) -> None (shared captured text)
setAttribute function (self, arg__1: Any, on: Any) -> Any X.setAttribute(arg__1, on) (shared captured text)
setAutoFillBackground function (self, enabled: Any) -> Any (shared captured text)
setBackgroundBrush function (self, brush: Any) -> None (shared captured text)
setBackgroundRole function (self, arg__1: Any) -> Any (shared captured text)
setBaseSize function (self, basew: Any, baseh: Any) -> Any X.setBaseSize(basew, baseh) (shared captured text)
setCacheMode function (self, mode: Any) -> None (shared captured text)
setContentsMargins function (self, left: Any, top: Any, right: Any, bottom: Any) -> Any X.setContentsMargins(left, top, right, bottom) (shared captured text)
setContextMenuPolicy function (self, policy: Any) -> Any (shared captured text)
setCornerWidget function (self, widget: Any) -> Any (shared captured text)
setCursor function (self, arg__1: Any) -> Any (shared captured text)
setDisabled function (self, a: Any) -> Any (shared captured text)
setDragMode function (self, mode: Any) -> None (shared captured text)
setEnabled function (self, a: Any) -> Any (shared captured text)
setFixedHeight function (self, h: Any) -> Any (shared captured text)
setFixedSize function (self, w: Any, h: Any) -> Any X.setFixedSize(w, h) (shared captured text)
setFixedWidth function (self, w: Any) -> Any (shared captured text)
setFocus function (self, reason: Any) -> Any (shared captured text)
setFocusPolicy function (self, policy: Any) -> Any (shared captured text)
setFocusProxy function (self, arg__1: Any) -> Any (shared captured text)
setFont function (self, arg__1: Any) -> Any (shared captured text)
setForegroundBrush function (self, brush: Any) -> None (shared captured text)
setForegroundRole function (self, arg__1: Any) -> Any (shared captured text)
setFrameRect function (self, arg__1: Any) -> Any (shared captured text)
setFrameShadow function (self, arg__1: Any) -> Any (shared captured text)
setFrameShape function (self, arg__1: Any) -> Any (shared captured text)
setFrameStyle function (self, arg__1: Any) -> Any (shared captured text)
setGeometry function (self, x: Any, y: Any, w: Any, h: Any) -> Any X.setGeometry(x, y, w, h) (shared captured text)
setGraphicsEffect function (self, effect: Any) -> Any (shared captured text)
setHidden function (self, hidden: Any) -> Any (shared captured text)
setHorizontalScrollBar function (self, scrollbar: Any) -> Any (shared captured text)
setHorizontalScrollBarPolicy function (self, arg__1: Any) -> Any (shared captured text)
setInputMethodHints function (self, hints: Any) -> Any (shared captured text)
setInteractive function (self, allowed: bool) -> None (shared captured text)
setLayout function (self, arg__1: Any) -> Any (shared captured text)
setLayoutDirection function (self, direction: Any) -> Any (shared captured text)
setLineWidth function (self, arg__1: Any) -> Any (shared captured text)
setLocale function (self, locale: Any) -> Any (shared captured text)
setMask function (self, arg__1: Any) -> Any (shared captured text)
setMatrix function (self, matrix: Any, combine: bool) -> None X.setMatrix(matrix, combine) (shared captured text)
setMaximumHeight function (self, maxh: Any) -> Any (shared captured text)
setMaximumSize function (self, maxw: Any, maxh: Any) -> Any X.setMaximumSize(maxw, maxh) (shared captured text)
setMaximumWidth function (self, maxw: Any) -> Any (shared captured text)
setMidLineWidth function (self, arg__1: Any) -> Any (shared captured text)
setMinimumHeight function (self, minh: Any) -> Any (shared captured text)
setMinimumSize function (self, minw: Any, minh: Any) -> Any X.setMinimumSize(minw, minh) (shared captured text)
setMinimumWidth function (self, minw: Any) -> Any (shared captured text)
setMouseTracking function (self, enable: Any) -> Any (shared captured text)
setObjectName function (self, name: Any) -> Any (shared captured text)
setOptimizationFlag function (self, arg0: flag, enabled: bool) -> None X.setOptimizationFlag(flag, enabled) (shared captured text)
setOptimizationFlags function (self, arg0: flags) -> None (shared captured text)
setPalette function (self, arg__1: Any) -> Any (shared captured text)
setParent function (self, parent: Any, f: Any) -> Any X.setParent(parent, f) (shared captured text)
setProperty function (self, name: Any, value: Any) -> bool X.setProperty(name, value) -> bool (shared captured text)
setRenderHint function (self, hint: Any, enabled: bool) -> None X.setRenderHint(hint, enabled) (shared captured text)
setRenderHints function (self, hints: Any) -> None (shared captured text)
setResizeAnchor function (self, anchor: Any) -> None (shared captured text)
setRubberBandSelectionMode function (self, mode: Any) -> None (shared captured text)
setScene function (self, scene: Any) -> None Sets the current scene to scene. (shared captured text)
setSceneRect function (self, x: Any, y: Any, w: Any, h: Any) -> None X.setSceneRect(x, y, w, h) (shared captured text)
setShortcutAutoRepeat function (self, id: Any, enable: Any) -> Any X.setShortcutAutoRepeat(id, enable) (shared captured text)
setShortcutEnabled function (self, id: Any, enable: Any) -> Any X.setShortcutEnabled(id, enable) (shared captured text)
setSizeAdjustPolicy function (self, policy: Any) -> Any (shared captured text)
setSizeIncrement function (self, w: Any, h: Any) -> Any X.setSizeIncrement(w, h) (shared captured text)
setSizePolicy function (self, horizontal: Any, vertical: Any) -> Any X.setSizePolicy(horizontal, vertical) (shared captured text)
setStatusTip function (self, arg__1: Any) -> Any (shared captured text)
setStyle function (self, arg__1: Any) -> Any (shared captured text)
setStyleSheet function (self, styleSheet: Any) -> Any (shared captured text)
setTabOrder function (self, arg__1: Any, arg__2: Any) -> Any X.setTabOrder(arg__1, arg__2) (shared captured text)
setToolTip function (self, arg__1: Any) -> Any (shared captured text)
setToolTipDuration function (self, msec: Any) -> Any (shared captured text)
setTransform function (self, matrix: Any, combine: bool) -> None X.setTransform(matrix, combine) (shared captured text)
setTransformationAnchor function (self, anchor: Any) -> None (shared captured text)
setUpdatesEnabled function (self, enable: Any) -> Any (shared captured text)
setVerticalScrollBar function (self, scrollbar: Any) -> Any (shared captured text)
setVerticalScrollBarPolicy function (self, arg__1: Any) -> Any (shared captured text)
setViewport function (self, widget: Any) -> Any (shared captured text)
setViewportMargins function (self, left: Any, top: Any, right: Any, bottom: Any) -> Any X.setViewportMargins(left, top, right, bottom) (shared captured text)
setViewportUpdateMode function (self, mode: Any) -> None (shared captured text)
setVisible function (self, visible: Any) -> Any (shared captured text)
setWhatsThis function (self, arg__1: Any) -> Any (shared captured text)
setWindowFilePath function (self, filePath: Any) -> Any (shared captured text)
setWindowFlags function (self, type: Any) -> Any (shared captured text)
setWindowIcon function (self, icon: Any) -> Any (shared captured text)
setWindowIconText function (self, arg__1: Any) -> Any (shared captured text)
setWindowModality function (self, windowModality: Any) -> Any (shared captured text)
setWindowModified function (self, a: Any) -> Any (shared captured text)
setWindowOpacity function (self, level: Any) -> Any (shared captured text)
setWindowRole function (self, arg__1: Any) -> Any (shared captured text)
setWindowState function (self, state: Any) -> Any (shared captured text)
setWindowTitle function (self, a: Any) -> Any (shared captured text)
setupViewport function (self, widget: Any) -> None Reimplements: [QAbstractScrollArea::setupViewport](https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#setupViewport)(QWidget *viewport). (shared captured text)
sharedPainter function (self) -> Any X.sharedPainter() -> PythonQt.QtGui.QPainter (shared captured text)
shear function (self, sh: float, sv: float) -> None X.shear(sh, sv) (shared captured text)
show function (self) -> Any (shared captured text)
showEvent function (self, event: Any) -> None Reimplements: [QWidget::showEvent](https://doc.qt.io/archives/qt-5.15/qwidget.html#showEvent)(QShowEvent *event). (shared captured text)
showFullScreen function (self) -> Any (shared captured text)
showMaximized function (self) -> Any (shared captured text)
showMinimized function (self) -> Any (shared captured text)
showNormal function (self) -> Any (shared captured text)
signalsBlocked function (self) -> bool X.signalsBlocked() -> bool (shared captured text)
size attribute QSize (shared captured text)
sizeAdjustPolicy attribute Any (shared captured text)
sizeHint attribute QSize Reimplements: [QAbstractScrollArea::sizeHint](https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#sizeHint)() const. (shared captured text)
sizeIncrement attribute QSize (shared captured text)
sizePolicy attribute QSizePolicy (shared captured text)
stackUnder function (self, arg__1: Any) -> Any (shared captured text)
startTimer function (self, interval: Any, timerType: Any) -> int X.startTimer(interval, timerType) -> int (shared captured text)
statusTip attribute Any (shared captured text)
style function (self) -> Any X.style() -> PythonQt.QtGui.QStyle (shared captured text)
styleSheet attribute Any (shared captured text)
tabletEvent function (self, event: Any) -> Any (shared captured text)
tabletTracking attribute Any (shared captured text)
testAttribute function (self, arg__1: Any) -> bool X.testAttribute(arg__1) -> bool (shared captured text)
thread function (self) -> Any (shared captured text)
timerEvent function (self, event: Any) -> Any (shared captured text)
toolTip attribute Any (shared captured text)
toolTipDuration attribute Any (shared captured text)
tr function (self, text: Any, ambig: Any, n: Any) -> str X.tr(text, ambig, n) -> str (shared captured text)
transform function (self) -> Any X.transform() -> PythonQt.QtGui.QTransform (shared captured text)
transformationAnchor attribute Any How the view should position the scene during transformations. (shared captured text)
translate function (self, dx: float, dy: float) -> None X.translate(dx, dy) (shared captured text)
underMouse function (self) -> bool X.underMouse() -> bool (shared captured text)
ungrabGesture function (self, type: Any) -> Any (shared captured text)
unsetCursor function (self) -> Any (shared captured text)
unsetLayoutDirection function (self) -> Any (shared captured text)
unsetLocale function (self) -> Any (shared captured text)
update function (self, x: Any, y: Any, w: Any, h: Any) -> Any X.update(x, y, w, h) (shared captured text)
updateGeometry function (self) -> Any (shared captured text)
updateScene function (self, rects: Any) -> None Schedules an update of the scene rectangles rects. (shared captured text)
updateSceneRect function (self, rect: Any) -> None Notifies [QGraphicsView](https://doc.qt.io/archives/qt-5.15/qgraphicsview.html) that the scene's scene rect has changed. rect is the new scene rect. (shared captured text)
updatesEnabled attribute Any (shared captured text)
verticalScrollBar function (self) -> Any X.verticalScrollBar() -> PythonQt.QtGui.QScrollBar (shared captured text)
verticalScrollBarPolicy attribute Any (shared captured text)
viewport function (self) -> Any X.viewport() -> PythonQt.QtGui.QWidget (shared captured text)
viewportEvent function (self, event: Any) -> bool X.viewportEvent(event) -> bool (shared captured text)
viewportMargins function (self) -> Any X.viewportMargins() -> PythonQt.QtGui.QMargins (shared captured text)
viewportSizeHint function (self) -> Any X.viewportSizeHint() -> PythonQt.QtCore.QSize (shared captured text)
viewportTransform function (self) -> Any X.viewportTransform() -> PythonQt.QtGui.QTransform (shared captured text)
viewportUpdateMode attribute Any How the viewport should update its contents. (shared captured text)
visible attribute Any (shared captured text)
visibleRegion function (self) -> Any X.visibleRegion() -> PythonQt.QtGui.QRegion (shared captured text)
whatsThis attribute Any (shared captured text)
wheelEvent function (self, event: Any) -> None Reimplements: [QAbstractScrollArea::wheelEvent](https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#wheelEvent)(QWheelEvent *e). (shared captured text)
width attribute Any (shared captured text)
widthMM function (self) -> int X.widthMM() -> int (shared captured text)
winId function (self) -> int X.winId() -> int (shared captured text)
window function (self) -> Any X.window() -> PythonQt.QtGui.QWidget (shared captured text)
windowFilePath attribute Any (shared captured text)
windowFlags function (self) -> Any (shared captured text)
windowHandle function (self) -> Any X.windowHandle() -> PythonQt.QtGui.QWindow (shared captured text)
windowIcon attribute QIcon (shared captured text)
windowIconChanged function (self, *args: Any, **kwargs: Any) -> Any Native PythonQt.Qt.QGraphicsView.windowIconChanged; argument details are not documented.
windowIconText attribute Any (shared captured text)
windowIconTextChanged function (self, *args: Any, **kwargs: Any) -> Any Native PythonQt.Qt.QGraphicsView.windowIconTextChanged; argument details are not documented.
windowModality attribute Any (shared captured text)
windowModified attribute Any (shared captured text)
windowOpacity attribute Any (shared captured text)
windowRole function (self) -> str X.windowRole() -> str (shared captured text)
windowState function (self) -> Any (shared captured text)
windowTitle attribute Any (shared captured text)
windowTitleChanged function (self, *args: Any, **kwargs: Any) -> Any Native PythonQt.Qt.QGraphicsView.windowTitleChanged; argument details are not documented.
windowType function (self) -> Any (shared captured text)
x attribute Any (shared captured text)
y attribute Any (shared captured text)