Skip to content

PythonQt.QtGui.QAbstractGraphicsShapeItem

QAbstractGraphicsShapeItem

PythonQtInstanceWrapper object

Native bases: PythonQtInstanceWrapper

Supplemental documentation: Qt 5 reference:

Detailed Description

This class does not fully implement an item by itself; in particular, it does not implement boundingRect() and paint(), which are inherited by QGraphicsItem.

You can subclass this item to provide a simple base implementation of accessors for the item's pen and brush.

Source: https://doc.qt.io/archives/qt-5.15/qabstractgraphicsshapeitem.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
CacheMode attribute type Convert a number or string to an integer, or return 0 if no arguments are given.
DeviceCoordinateCache attribute Any
Extension attribute type Convert a number or string to an integer, or return 0 if no arguments are given.
GraphicsItemChange attribute type Convert a number or string to an integer, or return 0 if no arguments are given.
GraphicsItemFlag attribute type Convert a number or string to an integer, or return 0 if no arguments are given.
GraphicsItemFlags attribute type Convert a number or string to an integer, or return 0 if no arguments are given.
ItemAcceptsInputMethod attribute Any
ItemChildAddedChange attribute Any
ItemChildRemovedChange attribute Any
ItemClipsChildrenToShape attribute Any
ItemClipsToShape attribute Any
ItemContainsChildrenInShape attribute Any
ItemCoordinateCache attribute Any
ItemCursorChange attribute Any
ItemCursorHasChanged attribute Any
ItemDoesntPropagateOpacityToChildren attribute Any
ItemEnabledChange attribute Any
ItemEnabledHasChanged attribute Any
ItemFlagsChange attribute Any
ItemFlagsHaveChanged attribute Any
ItemHasNoContents attribute Any
ItemIgnoresParentOpacity attribute Any
ItemIgnoresTransformations attribute Any
ItemIsFocusScope attribute Any
ItemIsFocusable attribute Any
ItemIsMovable attribute Any
ItemIsPanel attribute Any
ItemIsSelectable attribute Any (shared captured text)
ItemMatrixChange attribute Any
ItemNegativeZStacksBehindParent attribute Any
ItemOpacityChange attribute Any
ItemOpacityHasChanged attribute Any
ItemParentChange attribute Any
ItemParentHasChanged attribute Any
ItemPositionChange attribute Any
ItemPositionHasChanged attribute Any
ItemRotationChange attribute Any
ItemRotationHasChanged attribute Any
ItemScaleChange attribute Any
ItemScaleHasChanged attribute Any
ItemSceneChange attribute Any
ItemSceneHasChanged attribute Any
ItemScenePositionHasChanged attribute Any
ItemSelectedChange attribute Any
ItemSelectedHasChanged attribute Any
ItemSendsGeometryChanges attribute Any
ItemSendsScenePositionChanges attribute Any
ItemStacksBehindParent attribute Any
ItemStopsClickFocusPropagation attribute Any
ItemStopsFocusHandling attribute Any
ItemToolTipChange attribute Any
ItemToolTipHasChanged attribute Any
ItemTransformChange attribute Any
ItemTransformHasChanged attribute Any
ItemTransformOriginPointChange attribute Any
ItemTransformOriginPointHasChanged attribute Any
ItemUsesExtendedStyleOption attribute Any
ItemVisibleChange attribute Any
ItemVisibleHasChanged attribute Any
ItemZValueChange attribute Any
ItemZValueHasChanged attribute Any
NoCache attribute Any
NonModal attribute Any (shared captured text)
PanelModal attribute Any
PanelModality attribute type Convert a number or string to an integer, or return 0 if no arguments are given.
SceneModal attribute Any
Type attribute Any (shared captured text)
UserExtension attribute Any
UserType attribute Any
__init__ function (self, *args: Any, **kwargs: Any) -> None Native constructor; consult class documentation for supported overloads. (shared captured text)
acceptDrops function (self) -> bool X.acceptDrops() -> bool
acceptHoverEvents function (self) -> bool X.acceptHoverEvents() -> bool
acceptTouchEvents function (self) -> bool X.acceptTouchEvents() -> bool
acceptedMouseButtons function (self) -> Any
addToIndex function (self) -> Any
advance function (self, phase: Any) -> Any
boundingRect function (self) -> Any X.boundingRect() -> PythonQt.QtCore.QRectF
boundingRegion function (self, itemToDeviceTransform: Any) -> Any X.boundingRegion(itemToDeviceTransform) -> PythonQt.QtGui.QRegion
boundingRegionGranularity function (self) -> float X.boundingRegionGranularity() -> float
brush function (self) -> Any X.brush() -> PythonQt.QtGui.QBrush
cacheMode function (self) -> Any
childItems function (self) -> tuple X.childItems() -> tuple
childrenBoundingRect function (self) -> Any X.childrenBoundingRect() -> PythonQt.QtCore.QRectF
className function (self, *args: Any, **kwargs: Any) -> Any Return the classname of the object (shared captured text)
clearFocus function (self) -> Any (shared captured text)
clipPath function (self) -> Any X.clipPath() -> PythonQt.QtGui.QPainterPath
collidesWithItem function (self, other: Any, mode: Any) -> bool X.collidesWithItem(other, mode) -> bool
collidesWithPath function (self, path: Any, mode: Any) -> bool X.collidesWithPath(path, mode) -> bool
collidingItems function (self, mode: Any) -> tuple X.collidingItems(mode) -> tuple
commonAncestorItem function (self, other: Any) -> Any X.commonAncestorItem(other) -> PythonQt.QtGui.QGraphicsItem
contains function (self, point: Any) -> bool X.contains(point) -> bool
contextMenuEvent function (self, event: Any) -> Any (shared captured text)
cursor function (self) -> Any X.cursor() -> PythonQt.QtGui.QCursor
data function (self, key: Any) -> Any X.data(key) -> object
delete function (self, *args: Any, **kwargs: Any) -> Any Deletes the C++ object (at your own risk, my friend!) (shared captured text)
deviceTransform function (self, viewportTransform: Any) -> Any X.deviceTransform(viewportTransform) -> PythonQt.QtGui.QTransform
dragEnterEvent function (self, event: Any) -> Any (shared captured text)
dragLeaveEvent function (self, event: Any) -> Any (shared captured text)
dragMoveEvent function (self, event: Any) -> Any (shared captured text)
dropEvent function (self, event: Any) -> Any (shared captured text)
effectiveOpacity function (self) -> float X.effectiveOpacity() -> float
ensureVisible function (self, x: Any, y: Any, w: Any, h: Any, xmargin: Any, ymargin: Any) -> Any X.ensureVisible(x, y, w, h, xmargin, ymargin)
enum_1 attribute type Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text)
extension function (self, variant: Any) -> Any X.extension(variant) -> object
filtersChildEvents function (self) -> bool X.filtersChildEvents() -> bool
flags function (self) -> Any
focusInEvent function (self, event: Any) -> Any
focusItem function (self) -> Any X.focusItem() -> PythonQt.QtGui.QGraphicsItem
focusOutEvent function (self, event: Any) -> Any
focusProxy function (self) -> Any X.focusProxy() -> PythonQt.QtGui.QGraphicsItem
focusScopeItem function (self) -> Any X.focusScopeItem() -> PythonQt.QtGui.QGraphicsItem
grabKeyboard function (self) -> Any (shared captured text)
grabMouse function (self) -> Any
graphicsEffect function (self) -> Any X.graphicsEffect() -> PythonQt.QtGui.QGraphicsEffect (shared captured text)
group function (self) -> Any X.group() -> PythonQt.QtGui.QGraphicsItemGroup
handlesChildEvents function (self) -> bool X.handlesChildEvents() -> bool
hasCursor function (self) -> bool X.hasCursor() -> bool
hasFocus function (self) -> bool X.hasFocus() -> bool (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)
hoverEnterEvent function (self, event: Any) -> Any
hoverLeaveEvent function (self, event: Any) -> Any
hoverMoveEvent function (self, event: Any) -> Any
inherits function (self, *args: Any, **kwargs: Any) -> Any Returns if the class inherits or is of given type name (shared captured text)
inputMethodEvent function (self, event: Any) -> Any
inputMethodHints function (self) -> Any
inputMethodQuery function (self, query: Any) -> Any X.inputMethodQuery(query) -> object
installSceneEventFilter function (self, filterItem: Any) -> Any
isActive function (self) -> bool X.isActive() -> bool
isAncestorOf function (self, child: Any) -> bool X.isAncestorOf(child) -> bool (shared captured text)
isBlockedByModalPanel function (self, blockingPanel: Any) -> bool X.isBlockedByModalPanel(blockingPanel) -> bool
isClipped function (self) -> bool X.isClipped() -> bool
isEnabled function (self) -> bool X.isEnabled() -> bool (shared captured text)
isObscured function (self, x: Any, y: Any, w: Any, h: Any) -> bool X.isObscured(x, y, w, h) -> bool
isObscuredBy function (self, item: Any) -> bool X.isObscuredBy(item) -> bool
isPanel function (self) -> bool X.isPanel() -> bool
isSelected function (self) -> bool X.isSelected() -> bool
isUnderMouse function (self) -> bool X.isUnderMouse() -> bool
isVisible function (self) -> bool X.isVisible() -> bool (shared captured text)
isVisibleTo function (self, parent: Any) -> bool X.isVisibleTo(parent) -> bool
isWidget function (self) -> bool X.isWidget() -> bool
isWindow function (self) -> bool X.isWindow() -> bool (shared captured text)
itemChange function (self, change: Any, value: Any) -> Any X.itemChange(change, value) -> object
itemTransform function (self, other: Any, ok: Any) -> Any X.itemTransform(other, ok) -> PythonQt.QtGui.QTransform
keyPressEvent function (self, event: Any) -> Any
keyReleaseEvent function (self, event: Any) -> Any
mapFromItem function (self, item: Any, x: Any, y: Any, w: Any, h: Any) -> Any X.mapFromItem(item, x, y, w, h) -> PythonQt.QtGui.QPainterPath
mapFromParent function (self, x: Any, y: Any, w: Any, h: Any) -> Any X.mapFromParent(x, y, w, h) -> PythonQt.QtGui.QPainterPath
mapFromScene function (self, x: Any, y: Any, w: Any, h: Any) -> Any X.mapFromScene(x, y, w, h) -> PythonQt.QtGui.QPainterPath
mapRectFromItem function (self, item: Any, x: Any, y: Any, w: Any, h: Any) -> Any X.mapRectFromItem(item, x, y, w, h) -> PythonQt.QtCore.QRectF
mapRectFromParent function (self, x: Any, y: Any, w: Any, h: Any) -> Any X.mapRectFromParent(x, y, w, h) -> PythonQt.QtCore.QRectF
mapRectFromScene function (self, x: Any, y: Any, w: Any, h: Any) -> Any X.mapRectFromScene(x, y, w, h) -> PythonQt.QtCore.QRectF
mapRectToItem function (self, item: Any, x: Any, y: Any, w: Any, h: Any) -> Any X.mapRectToItem(item, x, y, w, h) -> PythonQt.QtCore.QRectF
mapRectToParent function (self, x: Any, y: Any, w: Any, h: Any) -> Any X.mapRectToParent(x, y, w, h) -> PythonQt.QtCore.QRectF
mapRectToScene function (self, x: Any, y: Any, w: Any, h: Any) -> Any X.mapRectToScene(x, y, w, h) -> PythonQt.QtCore.QRectF
mapToItem function (self, item: Any, x: Any, y: Any, w: Any, h: Any) -> Any X.mapToItem(item, x, y, w, h) -> PythonQt.QtGui.QPainterPath
mapToParent function (self, x: Any, y: Any, w: Any, h: Any) -> Any X.mapToParent(x, y, w, h) -> PythonQt.QtGui.QPainterPath
mapToScene function (self, x: Any, y: Any, w: Any, h: Any) -> Any X.mapToScene(x, y, w, h) -> PythonQt.QtGui.QPainterPath
mouseDoubleClickEvent function (self, event: Any) -> Any (shared captured text)
mouseMoveEvent function (self, event: Any) -> Any
mousePressEvent function (self, event: Any) -> Any
mouseReleaseEvent function (self, event: Any) -> Any
moveBy function (self, dx: Any, dy: Any) -> Any X.moveBy(dx, dy)
opacity function (self) -> float X.opacity() -> float
opaqueArea function (self) -> Any X.opaqueArea() -> PythonQt.QtGui.QPainterPath
paint function (self, painter: Any, option: Any, widget: Any) -> Any X.paint(painter, option, widget)
panel function (self) -> Any X.panel() -> PythonQt.QtGui.QGraphicsItem
panelModality function (self) -> Any
parentItem function (self) -> Any X.parentItem() -> PythonQt.QtGui.QGraphicsItem
parentObject function (self) -> Any X.parentObject() -> PythonQt.QtGui.QGraphicsObject
parentWidget function (self) -> Any X.parentWidget() -> PythonQt.QtGui.QGraphicsWidget
pen function (self) -> Any X.pen() -> PythonQt.QtGui.QPen
pos function (self) -> Any X.pos() -> PythonQt.QtCore.QPointF
prepareGeometryChange function (self) -> Any
removeFromIndex function (self) -> Any
removeSceneEventFilter function (self, filterItem: Any) -> Any
resetTransform function (self) -> Any
rotation function (self) -> float X.rotation() -> float
scale function (self) -> float X.scale() -> float
scene function (self) -> Any X.scene() -> PythonQt.QtGui.QGraphicsScene
sceneBoundingRect function (self) -> Any X.sceneBoundingRect() -> PythonQt.QtCore.QRectF
sceneEvent function (self, event: Any) -> bool X.sceneEvent(event) -> bool
sceneEventFilter function (self, watched: Any, event: Any) -> bool X.sceneEventFilter(watched, event) -> bool
scenePos function (self) -> Any X.scenePos() -> PythonQt.QtCore.QPointF
sceneTransform function (self) -> Any X.sceneTransform() -> PythonQt.QtGui.QTransform
scroll function (self, dx: Any, dy: Any, rect: Any) -> Any X.scroll(dx, dy, rect)
setAcceptDrops function (self, on: Any) -> Any (shared captured text)
setAcceptHoverEvents function (self, enabled: Any) -> Any
setAcceptTouchEvents function (self, enabled: Any) -> Any
setAcceptedMouseButtons function (self, buttons: Any) -> Any
setActive function (self, active: Any) -> Any
setBoundingRegionGranularity function (self, granularity: Any) -> Any
setBrush function (self, brush: Any) -> None Sets the item's brush to brush.
setCacheMode function (self, mode: Any, cacheSize: Any) -> Any X.setCacheMode(mode, cacheSize)
setCursor function (self, cursor: Any) -> Any
setData function (self, key: Any, value: Any) -> Any X.setData(key, value)
setEnabled function (self, enabled: Any) -> Any
setExtension function (self, extension: Any, variant: Any) -> Any X.setExtension(extension, variant)
setFiltersChildEvents function (self, enabled: Any) -> Any
setFlag function (self, arg0: flag, enabled: Any) -> Any X.setFlag(flag, enabled)
setFlags function (self, arg0: flags) -> Any
setFocus function (self, focusReason: Any) -> Any
setFocusProxy function (self, item: Any) -> Any
setGraphicsEffect function (self, effect: Any) -> Any (shared captured text)
setGroup function (self, group: Any) -> Any
setHandlesChildEvents function (self, enabled: Any) -> Any
setInputMethodHints function (self, hints: Any) -> Any (shared captured text)
setOpacity function (self, opacity: Any) -> Any
setPanelModality function (self, panelModality: Any) -> Any
setParentItem function (self, parent: Any) -> Any
setPen function (self, pen: Any) -> None Sets the pen for this item to pen.
setPos function (self, x: Any, y: Any) -> Any X.setPos(x, y)
setRotation function (self, angle: Any) -> Any
setScale function (self, scale: Any) -> Any
setSelected function (self, selected: Any) -> Any
setToolTip function (self, toolTip: Any) -> Any
setTransform function (self, matrix: Any, combine: Any) -> Any X.setTransform(matrix, combine)
setTransformOriginPoint function (self, ax: Any, ay: Any) -> Any X.setTransformOriginPoint(ax, ay)
setTransformations function (self, transformations: Any) -> Any
setVisible function (self, visible: Any) -> Any (shared captured text)
setX function (self, x: Any) -> Any
setY function (self, y: Any) -> Any
setZValue function (self, z: Any) -> Any
shape function (self) -> Any X.shape() -> PythonQt.QtGui.QPainterPath
show function (self) -> Any (shared captured text)
stackBefore function (self, sibling: Any) -> Any
supportsExtension function (self, extension: Any) -> bool X.supportsExtension(extension) -> bool
toGraphicsObject function (self) -> Any X.toGraphicsObject() -> PythonQt.QtGui.QGraphicsObject
toolTip function (self) -> str X.toolTip() -> str
topLevelItem function (self) -> Any X.topLevelItem() -> PythonQt.QtGui.QGraphicsItem
topLevelWidget function (self) -> Any X.topLevelWidget() -> PythonQt.QtGui.QGraphicsWidget
transform function (self) -> Any X.transform() -> PythonQt.QtGui.QTransform
transformOriginPoint function (self) -> Any X.transformOriginPoint() -> PythonQt.QtCore.QPointF
transformations function (self) -> tuple X.transformations() -> tuple
type function (self) -> int X.type() -> int
ungrabKeyboard function (self) -> Any
ungrabMouse function (self) -> Any
unsetCursor function (self) -> Any (shared captured text)
update function (self, x: Any, y: Any, width: Any, height: Any) -> Any X.update(x, y, width, height)
updateMicroFocus function (self) -> Any
wheelEvent function (self, event: Any) -> Any (shared captured text)
window function (self) -> Any X.window() -> PythonQt.QtGui.QGraphicsWidget
x function (self) -> float X.x() -> float
y function (self) -> float X.y() -> float
zValue function (self) -> float X.zValue() -> float