Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Module « PySide6.QtWidgets »

Classe « QGraphicsRectItem »

Informations générales

Héritage

builtins.object
    Object
        QGraphicsItem
            QAbstractGraphicsShapeItem
                QGraphicsRectItem

Définition

class QGraphicsRectItem(QAbstractGraphicsShapeItem):

Description [extrait de QGraphicsRectItem.__doc__]

QGraphicsRectItem(self, parent: Optional[PySide6.QtWidgets.QGraphicsItem] = None) -> None
QGraphicsRectItem(self, rect: Union[PySide6.QtCore.QRectF, PySide6.QtCore.QRect], parent: Optional[PySide6.QtWidgets.QGraphicsItem] = None) -> None
QGraphicsRectItem(self, x: float, y: float, w: float, h: float, parent: Optional[PySide6.QtWidgets.QGraphicsItem] = None) -> None

Constructeur(s)

Signature du constructeur Description
__new__(*args, **kwargs) Create and return a new object. See help(type) for accurate signature. [extrait de __new__.__doc__]

Liste des attributs statiques

Nom de l'attribut Valeur
DeviceCoordinateCachePySide6.QtWidgets.QGraphicsItem.CacheMode.DeviceCoordinateCache
ItemAcceptsInputMethodPySide6.QtWidgets.QGraphicsItem.GraphicsItemFlag.ItemAcceptsInputMethod
ItemChildAddedChangePySide6.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemChildAddedChange
ItemChildRemovedChangePySide6.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemChildRemovedChange
ItemClipsChildrenToShapePySide6.QtWidgets.QGraphicsItem.GraphicsItemFlag.ItemClipsChildrenToShape
ItemClipsToShapePySide6.QtWidgets.QGraphicsItem.GraphicsItemFlag.ItemClipsToShape
ItemContainsChildrenInShapePySide6.QtWidgets.QGraphicsItem.GraphicsItemFlag.ItemContainsChildrenInShape
ItemCoordinateCachePySide6.QtWidgets.QGraphicsItem.CacheMode.ItemCoordinateCache
ItemCursorChangePySide6.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemCursorChange
ItemCursorHasChangedPySide6.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemCursorHasChanged
ItemDoesntPropagateOpacityToChildrenPySide6.QtWidgets.QGraphicsItem.GraphicsItemFlag.ItemDoesntPropagateOpacityToChildren
ItemEnabledChangePySide6.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemEnabledChange
ItemEnabledHasChangedPySide6.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemEnabledHasChanged
ItemFlagsChangePySide6.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemFlagsChange
ItemFlagsHaveChangedPySide6.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemFlagsHaveChanged
ItemHasNoContentsPySide6.QtWidgets.QGraphicsItem.GraphicsItemFlag.ItemHasNoContents
ItemIgnoresParentOpacityPySide6.QtWidgets.QGraphicsItem.GraphicsItemFlag.ItemIgnoresParentOpacity
ItemIgnoresTransformationsPySide6.QtWidgets.QGraphicsItem.GraphicsItemFlag.ItemIgnoresTransformations
ItemIsFocusablePySide6.QtWidgets.QGraphicsItem.GraphicsItemFlag.ItemIsFocusable
ItemIsFocusScopePySide6.QtWidgets.QGraphicsItem.GraphicsItemFlag.ItemIsFocusScope
ItemIsMovablePySide6.QtWidgets.QGraphicsItem.GraphicsItemFlag.ItemIsMovable
ItemIsPanelPySide6.QtWidgets.QGraphicsItem.GraphicsItemFlag.ItemIsPanel
ItemIsSelectablePySide6.QtWidgets.QGraphicsItem.GraphicsItemFlag.ItemIsSelectable
ItemNegativeZStacksBehindParentPySide6.QtWidgets.QGraphicsItem.GraphicsItemFlag.ItemNegativeZStacksBehindParent
ItemOpacityChangePySide6.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemOpacityChange
ItemOpacityHasChangedPySide6.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemOpacityHasChanged
ItemParentChangePySide6.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemParentChange
ItemParentHasChangedPySide6.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemParentHasChanged
ItemPositionChangePySide6.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemPositionChange
ItemPositionHasChangedPySide6.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemPositionHasChanged
ItemRotationChangePySide6.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemRotationChange
ItemRotationHasChangedPySide6.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemRotationHasChanged
ItemScaleChangePySide6.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemScaleChange
ItemScaleHasChangedPySide6.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemScaleHasChanged
ItemSceneChangePySide6.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemSceneChange
ItemSceneHasChangedPySide6.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemSceneHasChanged
ItemScenePositionHasChangedPySide6.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemScenePositionHasChanged
ItemSelectedChangePySide6.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemSelectedChange
ItemSelectedHasChangedPySide6.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemSelectedHasChanged
ItemSendsGeometryChangesPySide6.QtWidgets.QGraphicsItem.GraphicsItemFlag.ItemSendsGeometryChanges
ItemSendsScenePositionChangesPySide6.QtWidgets.QGraphicsItem.GraphicsItemFlag.ItemSendsScenePositionChanges
ItemStacksBehindParentPySide6.QtWidgets.QGraphicsItem.GraphicsItemFlag.ItemStacksBehindParent
ItemStopsClickFocusPropagationPySide6.QtWidgets.QGraphicsItem.GraphicsItemFlag.ItemStopsClickFocusPropagation
ItemStopsFocusHandlingPySide6.QtWidgets.QGraphicsItem.GraphicsItemFlag.ItemStopsFocusHandling
ItemToolTipChangePySide6.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemToolTipChange
ItemToolTipHasChangedPySide6.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemToolTipHasChanged
ItemTransformChangePySide6.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemTransformChange
ItemTransformHasChangedPySide6.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemTransformHasChanged
ItemTransformOriginPointChangePySide6.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemTransformOriginPointChange
ItemTransformOriginPointHasChangedPySide6.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemTransformOriginPointHasChanged
ItemUsesExtendedStyleOptionPySide6.QtWidgets.QGraphicsItem.GraphicsItemFlag.ItemUsesExtendedStyleOption
ItemVisibleChangePySide6.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemVisibleChange
ItemVisibleHasChangedPySide6.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemVisibleHasChanged
ItemZValueChangePySide6.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemZValueChange
ItemZValueHasChangedPySide6.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemZValueHasChanged
NoCachePySide6.QtWidgets.QGraphicsItem.CacheMode.NoCache
NonModalPySide6.QtWidgets.QGraphicsItem.PanelModality.NonModal
PanelModalPySide6.QtWidgets.QGraphicsItem.PanelModality.PanelModal
SceneModalPySide6.QtWidgets.QGraphicsItem.PanelModality.SceneModal
UserExtensionPySide6.QtWidgets.QGraphicsItem.Extension.UserExtension
UserType65536

Liste des opérateurs

Opérateurs hérités de la classe object

__eq__, __ge__, __gt__, __le__, __lt__, __ne__

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes dépréciées
Signature de la méthodeDescription
__delattr__(self, name) Implement delattr(self, name). [extrait de __delattr__.__doc__]
__setattr__(self, name, value) Implement setattr(self, name, value). [extrait de __setattr__.__doc__]
boundingRect(self) -> PySide6.QtCore.QRectF boundingRect(self) -> PySide6.QtCore.QRectF [extrait de boundingRect.__doc__]
contains(self, point: Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element]) -> bool contains(self, point: Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element]) -> bool [extrait de contains.__doc__]
extension(self, variant: Any) -> Any extension(self, variant: Any) -> Any [extrait de extension.__doc__]
isObscuredBy(self, item: PySide6.QtWidgets.QGraphicsItem) -> bool isObscuredBy(self, item: PySide6.QtWidgets.QGraphicsItem) -> bool [extrait de isObscuredBy.__doc__]
opaqueArea(self) -> PySide6.QtGui.QPainterPath opaqueArea(self) -> PySide6.QtGui.QPainterPath [extrait de opaqueArea.__doc__]
paint(self, painter: PySide6.QtGui.QPainter, option: PySide6.QtWidgets.QStyleOptionGraphicsItem, widget: Optional[PySide6.QtWidgets.QWidget] = None) -> None paint(self, painter: PySide6.QtGui.QPainter, option: PySide6.QtWidgets.QStyleOptionGraphicsItem, widget: Optional[PySide6.QtWidgets.QWidget] = None) -> None [extrait de paint.__doc__]
rect(self) -> PySide6.QtCore.QRectF rect(self) -> PySide6.QtCore.QRectF [extrait de rect.__doc__]
setRect setRect(self, rect: Union[PySide6.QtCore.QRectF, PySide6.QtCore.QRect]) -> None [extrait de setRect.__doc__]
shape(self) -> PySide6.QtGui.QPainterPath shape(self) -> PySide6.QtGui.QPainterPath [extrait de shape.__doc__]
type(self) -> int type(self) -> int [extrait de type.__doc__]

Méthodes héritées de la classe QAbstractGraphicsShapeItem

__init_subclass__, __subclasshook__, brush, pen, setBrush, setPen

Méthodes héritées de la classe QGraphicsItem

__init_subclass__, __repr__, __subclasshook__, acceptDrops, acceptedMouseButtons, acceptHoverEvents, acceptTouchEvents, addToIndex, advance, boundingRegion, boundingRegionGranularity, CacheMode, cacheMode, childItems, childrenBoundingRect, clearFocus, clipPath, collidesWithItem, collidesWithPath, collidingItems, commonAncestorItem, contextMenuEvent, cursor, data, deviceTransform, dragEnterEvent, dragLeaveEvent, dragMoveEvent, dropEvent, effectiveOpacity, ensureVisible, Extension, filtersChildEvents, flags, focusInEvent, focusItem, focusOutEvent, focusProxy, focusScopeItem, grabKeyboard, grabMouse, graphicsEffect, GraphicsItemChange, GraphicsItemFlag, GraphicsItemFlags, group, handlesChildEvents, hasCursor, hasFocus, hide, hoverEnterEvent, hoverLeaveEvent, hoverMoveEvent, inputMethodEvent, inputMethodHints, inputMethodQuery, installSceneEventFilter, isActive, isAncestorOf, isBlockedByModalPanel, isClipped, isEnabled, isObscured, isPanel, isSelected, isUnderMouse, isVisible, isVisibleTo, isWidget, isWindow, itemChange, itemTransform, keyPressEvent, keyReleaseEvent, mapFromItem, mapFromParent, mapFromScene, mapRectFromItem, mapRectFromParent, mapRectFromScene, mapRectToItem, mapRectToParent, mapRectToScene, mapToItem, mapToParent, mapToScene, mouseDoubleClickEvent, mouseMoveEvent, mousePressEvent, mouseReleaseEvent, moveBy, opacity, panel, PanelModality, panelModality, parentItem, parentObject, parentWidget, pos, prepareGeometryChange, removeFromIndex, removeSceneEventFilter, resetTransform, rotation, scale, scene, sceneBoundingRect, sceneEvent, sceneEventFilter, scenePos, sceneTransform, scroll, setAcceptDrops, setAcceptedMouseButtons, setAcceptHoverEvents, setAcceptTouchEvents, setActive, setBoundingRegionGranularity, setCacheMode, setCursor, setData, setEnabled, setFiltersChildEvents, setFlag, setFlags, setFocus, setFocusProxy, setGraphicsEffect, setGroup, setHandlesChildEvents, setInputMethodHints, setOpacity, setPanelModality, setParentItem, setPos, setRotation, setScale, setSelected, setToolTip, setTransform, setTransformations, setTransformOriginPoint, setVisible, setX, setY, setZValue, show, stackBefore, toGraphicsObject, toolTip, topLevelItem, topLevelWidget, transform, transformations, transformOriginPoint, ungrabKeyboard, ungrabMouse, unsetCursor, update, updateMicroFocus, wheelEvent, window, x, y, zValue

Méthodes héritées de la classe Object

__getattribute__, __init_subclass__, __subclasshook__

Méthodes héritées de la classe object

__dir__, __format__, __hash__, __reduce__, __reduce_ex__, __repr__, __sizeof__, __str__