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 « PySide2.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: typing.Union[PySide2.QtWidgets.QGraphicsItem, NoneType] = None)
QGraphicsTextItem(self, text: str, parent: typing.Union[PySide2.QtWidgets.QGraphicsItem, NoneType] = 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__]
__init__(self, /, *args, **kwargs) Initialize self. See help(type(self)) for accurate signature. [extrait de __init__.__doc__]

Liste des attributs statiques

Nom de l'attribut Valeur
DeviceCoordinateCachePySide2.QtWidgets.QGraphicsItem.CacheMode.DeviceCoordinateCache
ItemAcceptsInputMethodPySide2.QtWidgets.QGraphicsItem.GraphicsItemFlag.ItemAcceptsInputMethod
ItemChildAddedChangePySide2.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemChildAddedChange
ItemChildRemovedChangePySide2.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemChildRemovedChange
ItemClipsChildrenToShapePySide2.QtWidgets.QGraphicsItem.GraphicsItemFlag.ItemClipsChildrenToShape
ItemClipsToShapePySide2.QtWidgets.QGraphicsItem.GraphicsItemFlag.ItemClipsToShape
ItemContainsChildrenInShapePySide2.QtWidgets.QGraphicsItem.GraphicsItemFlag.ItemContainsChildrenInShape
ItemCoordinateCachePySide2.QtWidgets.QGraphicsItem.CacheMode.ItemCoordinateCache
ItemCursorChangePySide2.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemCursorChange
ItemCursorHasChangedPySide2.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemCursorHasChanged
ItemDoesntPropagateOpacityToChildrenPySide2.QtWidgets.QGraphicsItem.GraphicsItemFlag.ItemDoesntPropagateOpacityToChildren
ItemEnabledChangePySide2.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemEnabledChange
ItemEnabledHasChangedPySide2.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemEnabledHasChanged
ItemFlagsChangePySide2.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemFlagsChange
ItemFlagsHaveChangedPySide2.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemFlagsHaveChanged
ItemHasNoContentsPySide2.QtWidgets.QGraphicsItem.GraphicsItemFlag.ItemHasNoContents
ItemIgnoresParentOpacityPySide2.QtWidgets.QGraphicsItem.GraphicsItemFlag.ItemIgnoresParentOpacity
ItemIgnoresTransformationsPySide2.QtWidgets.QGraphicsItem.GraphicsItemFlag.ItemIgnoresTransformations
ItemIsFocusablePySide2.QtWidgets.QGraphicsItem.GraphicsItemFlag.ItemIsFocusable
ItemIsFocusScopePySide2.QtWidgets.QGraphicsItem.GraphicsItemFlag.ItemIsFocusScope
ItemIsMovablePySide2.QtWidgets.QGraphicsItem.GraphicsItemFlag.ItemIsMovable
ItemIsPanelPySide2.QtWidgets.QGraphicsItem.GraphicsItemFlag.ItemIsPanel
ItemIsSelectablePySide2.QtWidgets.QGraphicsItem.GraphicsItemFlag.ItemIsSelectable
ItemMatrixChangePySide2.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemMatrixChange
ItemNegativeZStacksBehindParentPySide2.QtWidgets.QGraphicsItem.GraphicsItemFlag.ItemNegativeZStacksBehindParent
ItemOpacityChangePySide2.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemOpacityChange
ItemOpacityHasChangedPySide2.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemOpacityHasChanged
ItemParentChangePySide2.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemParentChange
ItemParentHasChangedPySide2.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemParentHasChanged
ItemPositionChangePySide2.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemPositionChange
ItemPositionHasChangedPySide2.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemPositionHasChanged
ItemRotationChangePySide2.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemRotationChange
ItemRotationHasChangedPySide2.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemRotationHasChanged
ItemScaleChangePySide2.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemScaleChange
ItemScaleHasChangedPySide2.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemScaleHasChanged
ItemSceneChangePySide2.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemSceneChange
ItemSceneHasChangedPySide2.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemSceneHasChanged
ItemScenePositionHasChangedPySide2.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemScenePositionHasChanged
ItemSelectedChangePySide2.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemSelectedChange
ItemSelectedHasChangedPySide2.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemSelectedHasChanged
ItemSendsGeometryChangesPySide2.QtWidgets.QGraphicsItem.GraphicsItemFlag.ItemSendsGeometryChanges
ItemSendsScenePositionChangesPySide2.QtWidgets.QGraphicsItem.GraphicsItemFlag.ItemSendsScenePositionChanges
ItemStacksBehindParentPySide2.QtWidgets.QGraphicsItem.GraphicsItemFlag.ItemStacksBehindParent
ItemStopsClickFocusPropagationPySide2.QtWidgets.QGraphicsItem.GraphicsItemFlag.ItemStopsClickFocusPropagation
ItemStopsFocusHandlingPySide2.QtWidgets.QGraphicsItem.GraphicsItemFlag.ItemStopsFocusHandling
ItemToolTipChangePySide2.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemToolTipChange
ItemToolTipHasChangedPySide2.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemToolTipHasChanged
ItemTransformChangePySide2.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemTransformChange
ItemTransformHasChangedPySide2.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemTransformHasChanged
ItemTransformOriginPointChangePySide2.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemTransformOriginPointChange
ItemTransformOriginPointHasChangedPySide2.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemTransformOriginPointHasChanged
ItemUsesExtendedStyleOptionPySide2.QtWidgets.QGraphicsItem.GraphicsItemFlag.ItemUsesExtendedStyleOption
ItemVisibleChangePySide2.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemVisibleChange
ItemVisibleHasChangedPySide2.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemVisibleHasChanged
ItemZValueChangePySide2.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemZValueChange
ItemZValueHasChangedPySide2.QtWidgets.QGraphicsItem.GraphicsItemChange.ItemZValueHasChanged
NoCachePySide2.QtWidgets.QGraphicsItem.CacheMode.NoCache
NonModalPySide2.QtWidgets.QGraphicsItem.PanelModality.NonModal
PanelModalPySide2.QtWidgets.QGraphicsItem.PanelModality.PanelModal
SceneModalPySide2.QtWidgets.QGraphicsItem.PanelModality.SceneModal
staticMetaObject<PySide2.QtCore.QMetaObject object at 0x7efe359a8b80>
UserExtensionPySide2.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) adjustSize(self) [extrait de adjustSize.__doc__]
boundingRect(self) -> PySide2.QtCore.QRectF boundingRect(self) -> PySide2.QtCore.QRectF [extrait de boundingRect.__doc__]
childrenChanged
contains(self, point: PySide2.QtCore.QPointF) -> bool contains(self, point: PySide2.QtCore.QPointF) -> bool [extrait de contains.__doc__]
contextMenuEvent(self, event: PySide2.QtWidgets.QGraphicsSceneContextMenuEvent) contextMenuEvent(self, event: PySide2.QtWidgets.QGraphicsSceneContextMenuEvent) [extrait de contextMenuEvent.__doc__]
defaultTextColor(self) -> PySide2.QtGui.QColor defaultTextColor(self) -> PySide2.QtGui.QColor [extrait de defaultTextColor.__doc__]
destroyed
document(self) -> PySide2.QtGui.QTextDocument document(self) -> PySide2.QtGui.QTextDocument [extrait de document.__doc__]
dragEnterEvent(self, event: PySide2.QtWidgets.QGraphicsSceneDragDropEvent) dragEnterEvent(self, event: PySide2.QtWidgets.QGraphicsSceneDragDropEvent) [extrait de dragEnterEvent.__doc__]
dragLeaveEvent(self, event: PySide2.QtWidgets.QGraphicsSceneDragDropEvent) dragLeaveEvent(self, event: PySide2.QtWidgets.QGraphicsSceneDragDropEvent) [extrait de dragLeaveEvent.__doc__]
dragMoveEvent(self, event: PySide2.QtWidgets.QGraphicsSceneDragDropEvent) dragMoveEvent(self, event: PySide2.QtWidgets.QGraphicsSceneDragDropEvent) [extrait de dragMoveEvent.__doc__]
dropEvent(self, event: PySide2.QtWidgets.QGraphicsSceneDragDropEvent) dropEvent(self, event: PySide2.QtWidgets.QGraphicsSceneDragDropEvent) [extrait de dropEvent.__doc__]
enabledChanged
extension(self, variant: typing.Any) -> typing.Any extension(self, variant: typing.Any) -> typing.Any [extrait de extension.__doc__]
focusInEvent(self, event: PySide2.QtGui.QFocusEvent) focusInEvent(self, event: PySide2.QtGui.QFocusEvent) [extrait de focusInEvent.__doc__]
focusOutEvent(self, event: PySide2.QtGui.QFocusEvent) focusOutEvent(self, event: PySide2.QtGui.QFocusEvent) [extrait de focusOutEvent.__doc__]
font(self) -> PySide2.QtGui.QFont font(self) -> PySide2.QtGui.QFont [extrait de font.__doc__]
heightChanged
hoverEnterEvent(self, event: PySide2.QtWidgets.QGraphicsSceneHoverEvent) hoverEnterEvent(self, event: PySide2.QtWidgets.QGraphicsSceneHoverEvent) [extrait de hoverEnterEvent.__doc__]
hoverLeaveEvent(self, event: PySide2.QtWidgets.QGraphicsSceneHoverEvent) hoverLeaveEvent(self, event: PySide2.QtWidgets.QGraphicsSceneHoverEvent) [extrait de hoverLeaveEvent.__doc__]
hoverMoveEvent(self, event: PySide2.QtWidgets.QGraphicsSceneHoverEvent) hoverMoveEvent(self, event: PySide2.QtWidgets.QGraphicsSceneHoverEvent) [extrait de hoverMoveEvent.__doc__]
inputMethodEvent(self, event: PySide2.QtGui.QInputMethodEvent) inputMethodEvent(self, event: PySide2.QtGui.QInputMethodEvent) [extrait de inputMethodEvent.__doc__]
inputMethodQuery(self, query: PySide2.QtCore.Qt.InputMethodQuery) -> typing.Any inputMethodQuery(self, query: PySide2.QtCore.Qt.InputMethodQuery) -> typing.Any [extrait de inputMethodQuery.__doc__]
isObscuredBy(self, item: PySide2.QtWidgets.QGraphicsItem) -> bool isObscuredBy(self, item: PySide2.QtWidgets.QGraphicsItem) -> bool [extrait de isObscuredBy.__doc__]
keyPressEvent(self, event: PySide2.QtGui.QKeyEvent) keyPressEvent(self, event: PySide2.QtGui.QKeyEvent) [extrait de keyPressEvent.__doc__]
keyReleaseEvent(self, event: PySide2.QtGui.QKeyEvent) keyReleaseEvent(self, event: PySide2.QtGui.QKeyEvent) [extrait de keyReleaseEvent.__doc__]
linkActivated
linkHovered
mouseDoubleClickEvent(self, event: PySide2.QtWidgets.QGraphicsSceneMouseEvent) mouseDoubleClickEvent(self, event: PySide2.QtWidgets.QGraphicsSceneMouseEvent) [extrait de mouseDoubleClickEvent.__doc__]
mouseMoveEvent(self, event: PySide2.QtWidgets.QGraphicsSceneMouseEvent) mouseMoveEvent(self, event: PySide2.QtWidgets.QGraphicsSceneMouseEvent) [extrait de mouseMoveEvent.__doc__]
mousePressEvent(self, event: PySide2.QtWidgets.QGraphicsSceneMouseEvent) mousePressEvent(self, event: PySide2.QtWidgets.QGraphicsSceneMouseEvent) [extrait de mousePressEvent.__doc__]
mouseReleaseEvent(self, event: PySide2.QtWidgets.QGraphicsSceneMouseEvent) mouseReleaseEvent(self, event: PySide2.QtWidgets.QGraphicsSceneMouseEvent) [extrait de mouseReleaseEvent.__doc__]
objectNameChanged
opacityChanged
opaqueArea(self) -> PySide2.QtGui.QPainterPath opaqueArea(self) -> PySide2.QtGui.QPainterPath [extrait de opaqueArea.__doc__]
openExternalLinks(self) -> bool openExternalLinks(self) -> bool [extrait de openExternalLinks.__doc__]
paint(self, painter: PySide2.QtGui.QPainter, option: PySide2.QtWidgets.QStyleOptionGraphicsItem, widget: PySide2.QtWidgets.QWidget) paint(self, painter: PySide2.QtGui.QPainter, option: PySide2.QtWidgets.QStyleOptionGraphicsItem, widget: PySide2.QtWidgets.QWidget) [extrait de paint.__doc__]
parentChanged
rotationChanged
scaleChanged
sceneEvent(self, event: PySide2.QtCore.QEvent) -> bool sceneEvent(self, event: PySide2.QtCore.QEvent) -> bool [extrait de sceneEvent.__doc__]
setDefaultTextColor(self, c: PySide2.QtGui.QColor) setDefaultTextColor(self, c: PySide2.QtGui.QColor) [extrait de setDefaultTextColor.__doc__]
setDocument(self, document: PySide2.QtGui.QTextDocument) setDocument(self, document: PySide2.QtGui.QTextDocument) [extrait de setDocument.__doc__]
setExtension(self, extension: PySide2.QtWidgets.QGraphicsItem.Extension, variant: typing.Any) setExtension(self, extension: PySide2.QtWidgets.QGraphicsItem.Extension, variant: typing.Any) [extrait de setExtension.__doc__]
setFont(self, font: PySide2.QtGui.QFont) setFont(self, font: PySide2.QtGui.QFont) [extrait de setFont.__doc__]
setHtml(self, html: str) setHtml(self, html: str) [extrait de setHtml.__doc__]
setOpenExternalLinks(self, open: bool) setOpenExternalLinks(self, open: bool) [extrait de setOpenExternalLinks.__doc__]
setPlainText(self, text: str) setPlainText(self, text: str) [extrait de setPlainText.__doc__]
setTabChangesFocus(self, b: bool) setTabChangesFocus(self, b: bool) [extrait de setTabChangesFocus.__doc__]
setTextCursor(self, cursor: PySide2.QtGui.QTextCursor) setTextCursor(self, cursor: PySide2.QtGui.QTextCursor) [extrait de setTextCursor.__doc__]
setTextInteractionFlags(self, flags: PySide2.QtCore.Qt.TextInteractionFlags) setTextInteractionFlags(self, flags: PySide2.QtCore.Qt.TextInteractionFlags) [extrait de setTextInteractionFlags.__doc__]
setTextWidth(self, width: float) setTextWidth(self, width: float) [extrait de setTextWidth.__doc__]
shape(self) -> PySide2.QtGui.QPainterPath shape(self) -> PySide2.QtGui.QPainterPath [extrait de shape.__doc__]
supportsExtension(self, extension: PySide2.QtWidgets.QGraphicsItem.Extension) -> bool supportsExtension(self, extension: PySide2.QtWidgets.QGraphicsItem.Extension) -> bool [extrait de supportsExtension.__doc__]
tabChangesFocus(self) -> bool tabChangesFocus(self) -> bool [extrait de tabChangesFocus.__doc__]
textCursor(self) -> PySide2.QtGui.QTextCursor textCursor(self) -> PySide2.QtGui.QTextCursor [extrait de textCursor.__doc__]
textInteractionFlags(self) -> PySide2.QtCore.Qt.TextInteractionFlags textInteractionFlags(self) -> PySide2.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__]
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, registerUserData, removeEventFilter, sender, senderSignalIndex, setObjectName, setParent, setProperty, signalsBlocked, startTimer, thread, timerEvent, tr

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, matrix, moveBy, opacity, panel, PanelModality, panelModality, parentItem, parentObject, parentWidget, pos, prepareGeometryChange, removeFromIndex, removeSceneEventFilter, resetMatrix, resetTransform, rotation, scale, scene, sceneBoundingRect, sceneEventFilter, sceneMatrix, scenePos, sceneTransform, scroll, setAcceptDrops, setAcceptedMouseButtons, setAcceptHoverEvents, setAcceptTouchEvents, setActive, setBoundingRegionGranularity, setCacheMode, setCursor, setData, setEnabled, setFiltersChildEvents, setFlag, setFlags, setFocus, setFocusProxy, setGraphicsEffect, setGroup, setHandlesChildEvents, setInputMethodHints, setMatrix, 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

__init_subclass__, __subclasshook__

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

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