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 « QGraphicsTextItem »

Informations générales

Héritage

builtins.object
    Object
        QObject
builtins.object
    Object
        QGraphicsItem
            QGraphicsObject
                QGraphicsTextItem

Définition

class QGraphicsTextItem(QGraphicsObject):

Description [extrait de QGraphicsTextItem.__doc__]

QGraphicsTextItem(self, parent: Optional[PySide6.QtWidgets.QGraphicsItem] = None) -> None
QGraphicsTextItem(self, text: str, 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
staticMetaObject<PySide6.QtCore.QMetaObject object at 0x7f40dfeb71c0>
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__]
adjustSize(self) -> None adjustSize(self) -> None [extrait de adjustSize.__doc__]
boundingRect(self) -> PySide6.QtCore.QRectF boundingRect(self) -> PySide6.QtCore.QRectF [extrait de boundingRect.__doc__]
childrenChanged
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__]
contextMenuEvent(self, event: PySide6.QtWidgets.QGraphicsSceneContextMenuEvent) -> None contextMenuEvent(self, event: PySide6.QtWidgets.QGraphicsSceneContextMenuEvent) -> None [extrait de contextMenuEvent.__doc__]
defaultTextColor(self) -> PySide6.QtGui.QColor defaultTextColor(self) -> PySide6.QtGui.QColor [extrait de defaultTextColor.__doc__]
destroyed
document(self) -> PySide6.QtGui.QTextDocument document(self) -> PySide6.QtGui.QTextDocument [extrait de document.__doc__]
dragEnterEvent(self, event: PySide6.QtWidgets.QGraphicsSceneDragDropEvent) -> None dragEnterEvent(self, event: PySide6.QtWidgets.QGraphicsSceneDragDropEvent) -> None [extrait de dragEnterEvent.__doc__]
dragLeaveEvent(self, event: PySide6.QtWidgets.QGraphicsSceneDragDropEvent) -> None dragLeaveEvent(self, event: PySide6.QtWidgets.QGraphicsSceneDragDropEvent) -> None [extrait de dragLeaveEvent.__doc__]
dragMoveEvent(self, event: PySide6.QtWidgets.QGraphicsSceneDragDropEvent) -> None dragMoveEvent(self, event: PySide6.QtWidgets.QGraphicsSceneDragDropEvent) -> None [extrait de dragMoveEvent.__doc__]
dropEvent(self, event: PySide6.QtWidgets.QGraphicsSceneDragDropEvent) -> None dropEvent(self, event: PySide6.QtWidgets.QGraphicsSceneDragDropEvent) -> None [extrait de dropEvent.__doc__]
enabledChanged
extension(self, variant: Any) -> Any extension(self, variant: Any) -> Any [extrait de extension.__doc__]
focusInEvent(self, event: PySide6.QtGui.QFocusEvent) -> None focusInEvent(self, event: PySide6.QtGui.QFocusEvent) -> None [extrait de focusInEvent.__doc__]
focusOutEvent(self, event: PySide6.QtGui.QFocusEvent) -> None focusOutEvent(self, event: PySide6.QtGui.QFocusEvent) -> None [extrait de focusOutEvent.__doc__]
font(self) -> PySide6.QtGui.QFont font(self) -> PySide6.QtGui.QFont [extrait de font.__doc__]
heightChanged
hoverEnterEvent(self, event: PySide6.QtWidgets.QGraphicsSceneHoverEvent) -> None hoverEnterEvent(self, event: PySide6.QtWidgets.QGraphicsSceneHoverEvent) -> None [extrait de hoverEnterEvent.__doc__]
hoverLeaveEvent(self, event: PySide6.QtWidgets.QGraphicsSceneHoverEvent) -> None hoverLeaveEvent(self, event: PySide6.QtWidgets.QGraphicsSceneHoverEvent) -> None [extrait de hoverLeaveEvent.__doc__]
hoverMoveEvent(self, event: PySide6.QtWidgets.QGraphicsSceneHoverEvent) -> None hoverMoveEvent(self, event: PySide6.QtWidgets.QGraphicsSceneHoverEvent) -> None [extrait de hoverMoveEvent.__doc__]
inputMethodEvent(self, event: PySide6.QtGui.QInputMethodEvent) -> None inputMethodEvent(self, event: PySide6.QtGui.QInputMethodEvent) -> None [extrait de inputMethodEvent.__doc__]
inputMethodQuery(self, query: PySide6.QtCore.Qt.InputMethodQuery) -> Any inputMethodQuery(self, query: PySide6.QtCore.Qt.InputMethodQuery) -> Any [extrait de inputMethodQuery.__doc__]
isObscuredBy(self, item: PySide6.QtWidgets.QGraphicsItem) -> bool isObscuredBy(self, item: PySide6.QtWidgets.QGraphicsItem) -> bool [extrait de isObscuredBy.__doc__]
keyPressEvent(self, event: PySide6.QtGui.QKeyEvent) -> None keyPressEvent(self, event: PySide6.QtGui.QKeyEvent) -> None [extrait de keyPressEvent.__doc__]
keyReleaseEvent(self, event: PySide6.QtGui.QKeyEvent) -> None keyReleaseEvent(self, event: PySide6.QtGui.QKeyEvent) -> None [extrait de keyReleaseEvent.__doc__]
linkActivated
linkHovered
mouseDoubleClickEvent(self, event: PySide6.QtWidgets.QGraphicsSceneMouseEvent) -> None mouseDoubleClickEvent(self, event: PySide6.QtWidgets.QGraphicsSceneMouseEvent) -> None [extrait de mouseDoubleClickEvent.__doc__]
mouseMoveEvent(self, event: PySide6.QtWidgets.QGraphicsSceneMouseEvent) -> None mouseMoveEvent(self, event: PySide6.QtWidgets.QGraphicsSceneMouseEvent) -> None [extrait de mouseMoveEvent.__doc__]
mousePressEvent(self, event: PySide6.QtWidgets.QGraphicsSceneMouseEvent) -> None mousePressEvent(self, event: PySide6.QtWidgets.QGraphicsSceneMouseEvent) -> None [extrait de mousePressEvent.__doc__]
mouseReleaseEvent(self, event: PySide6.QtWidgets.QGraphicsSceneMouseEvent) -> None mouseReleaseEvent(self, event: PySide6.QtWidgets.QGraphicsSceneMouseEvent) -> None [extrait de mouseReleaseEvent.__doc__]
objectNameChanged
opacityChanged
opaqueArea(self) -> PySide6.QtGui.QPainterPath opaqueArea(self) -> PySide6.QtGui.QPainterPath [extrait de opaqueArea.__doc__]
openExternalLinks(self) -> bool openExternalLinks(self) -> bool [extrait de openExternalLinks.__doc__]
paint(self, painter: PySide6.QtGui.QPainter, option: PySide6.QtWidgets.QStyleOptionGraphicsItem, widget: PySide6.QtWidgets.QWidget) -> None paint(self, painter: PySide6.QtGui.QPainter, option: PySide6.QtWidgets.QStyleOptionGraphicsItem, widget: PySide6.QtWidgets.QWidget) -> None [extrait de paint.__doc__]
parentChanged
rotationChanged
scaleChanged
sceneEvent(self, event: PySide6.QtCore.QEvent) -> bool sceneEvent(self, event: PySide6.QtCore.QEvent) -> bool [extrait de sceneEvent.__doc__]
setDefaultTextColor(self, c: Union[PySide6.QtGui.QColor, PySide6.QtGui.QRgba64, Any, PySide6.QtCore.Qt.GlobalColor, str, int]) -> None setDefaultTextColor(self, c: Union[PySide6.QtGui.QColor, PySide6.QtGui.QRgba64, Any, PySide6.QtCore.Qt.GlobalColor, str, int]) -> None [extrait de setDefaultTextColor.__doc__]
setDocument(self, document: PySide6.QtGui.QTextDocument) -> None setDocument(self, document: PySide6.QtGui.QTextDocument) -> None [extrait de setDocument.__doc__]
setExtension(self, extension: PySide6.QtWidgets.QGraphicsItem.Extension, variant: Any) -> None setExtension(self, extension: PySide6.QtWidgets.QGraphicsItem.Extension, variant: Any) -> None [extrait de setExtension.__doc__]
setFont(self, font: Union[PySide6.QtGui.QFont, str, Sequence[str]]) -> None setFont(self, font: Union[PySide6.QtGui.QFont, str, Sequence[str]]) -> None [extrait de setFont.__doc__]
setHtml(self, html: str) -> None setHtml(self, html: str) -> None [extrait de setHtml.__doc__]
setOpenExternalLinks(self, open: bool) -> None setOpenExternalLinks(self, open: bool) -> None [extrait de setOpenExternalLinks.__doc__]
setPlainText(self, text: str) -> None setPlainText(self, text: str) -> None [extrait de setPlainText.__doc__]
setTabChangesFocus(self, b: bool) -> None setTabChangesFocus(self, b: bool) -> None [extrait de setTabChangesFocus.__doc__]
setTextCursor(self, cursor: PySide6.QtGui.QTextCursor) -> None setTextCursor(self, cursor: PySide6.QtGui.QTextCursor) -> None [extrait de setTextCursor.__doc__]
setTextInteractionFlags(self, flags: PySide6.QtCore.Qt.TextInteractionFlags) -> None setTextInteractionFlags(self, flags: PySide6.QtCore.Qt.TextInteractionFlags) -> None [extrait de setTextInteractionFlags.__doc__]
setTextWidth(self, width: float) -> None setTextWidth(self, width: float) -> None [extrait de setTextWidth.__doc__]
shape(self) -> PySide6.QtGui.QPainterPath shape(self) -> PySide6.QtGui.QPainterPath [extrait de shape.__doc__]
supportsExtension(self, extension: PySide6.QtWidgets.QGraphicsItem.Extension) -> bool supportsExtension(self, extension: PySide6.QtWidgets.QGraphicsItem.Extension) -> bool [extrait de supportsExtension.__doc__]
tabChangesFocus(self) -> bool tabChangesFocus(self) -> bool [extrait de tabChangesFocus.__doc__]
textCursor(self) -> PySide6.QtGui.QTextCursor textCursor(self) -> PySide6.QtGui.QTextCursor [extrait de textCursor.__doc__]
textInteractionFlags(self) -> PySide6.QtCore.Qt.TextInteractionFlags textInteractionFlags(self) -> PySide6.QtCore.Qt.TextInteractionFlags [extrait de textInteractionFlags.__doc__]
textWidth(self) -> float textWidth(self) -> float [extrait de textWidth.__doc__]
toHtml(self) -> str toHtml(self) -> str [extrait de toHtml.__doc__]
toPlainText(self) -> str toPlainText(self) -> str [extrait de toPlainText.__doc__]
tr
type(self) -> int type(self) -> int [extrait de type.__doc__]
visibleChanged
widthChanged
xChanged
yChanged
zChanged

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

__init_subclass__, __repr__, __subclasshook__, event, grabGesture, ungrabGesture, updateMicroFocus

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

__getattribute__, __init_subclass__, __repr__, __subclasshook__, blockSignals, childEvent, children, connect, connectNotify, customEvent, deleteLater, disconnect, disconnectNotify, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, emit, event, eventFilter, findChild, findChildren, inherits, installEventFilter, isSignalConnected, isWidgetType, isWindowType, killTimer, metaObject, moveToThread, objectName, parent, property, receivers, removeEventFilter, sender, senderSignalIndex, setObjectName, setParent, setProperty, signalsBlocked, startTimer, thread, timerEvent

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, cursor, data, deviceTransform, effectiveOpacity, ensureVisible, Extension, filtersChildEvents, flags, focusItem, focusProxy, focusScopeItem, grabKeyboard, grabMouse, graphicsEffect, GraphicsItemChange, GraphicsItemFlag, GraphicsItemFlags, group, handlesChildEvents, hasCursor, hasFocus, hide, inputMethodHints, installSceneEventFilter, isActive, isAncestorOf, isBlockedByModalPanel, isClipped, isEnabled, isObscured, isPanel, isSelected, isUnderMouse, isVisible, isVisibleTo, isWidget, isWindow, itemChange, itemTransform, mapFromItem, mapFromParent, mapFromScene, mapRectFromItem, mapRectFromParent, mapRectFromScene, mapRectToItem, mapRectToParent, mapRectToScene, mapToItem, mapToParent, mapToScene, moveBy, opacity, panel, PanelModality, panelModality, parentItem, parentObject, parentWidget, pos, prepareGeometryChange, removeFromIndex, removeSceneEventFilter, resetTransform, rotation, scale, scene, sceneBoundingRect, 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__