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.QtCharts »

Classe « QLegend »

Informations générales

Héritage

    builtins.object
        Object
            QGraphicsLayoutItem
builtins.object
    Object
        QObject
builtins.object
    Object
        QGraphicsItem
            QGraphicsObject
                QGraphicsWidget
                    QLegend

Définition

class QLegend(QGraphicsWidget):

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, parent: Optional[PySide6.QtWidgets.QGraphicsItem] = None, wFlags: PySide6.QtCore.Qt.WindowFlags = Default(Qt.WindowFlags)) -> None __init__(self, parent: Optional[PySide6.QtWidgets.QGraphicsItem] = None, wFlags: PySide6.QtCore.Qt.WindowFlags = Default(Qt.WindowFlags)) -> None [extrait de __init__.__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
MarkerShapeCirclePySide6.QtCharts.QLegend.MarkerShape.MarkerShapeCircle
MarkerShapeDefaultPySide6.QtCharts.QLegend.MarkerShape.MarkerShapeDefault
MarkerShapeFromSeriesPySide6.QtCharts.QLegend.MarkerShape.MarkerShapeFromSeries
MarkerShapePentagonPySide6.QtCharts.QLegend.MarkerShape.MarkerShapePentagon
MarkerShapeRectanglePySide6.QtCharts.QLegend.MarkerShape.MarkerShapeRectangle
MarkerShapeRotatedRectanglePySide6.QtCharts.QLegend.MarkerShape.MarkerShapeRotatedRectangle
MarkerShapeStarPySide6.QtCharts.QLegend.MarkerShape.MarkerShapeStar
MarkerShapeTrianglePySide6.QtCharts.QLegend.MarkerShape.MarkerShapeTriangle
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 0x7f40dfd00f40>
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__]
alignment(self) -> PySide6.QtCore.Qt.Alignment alignment(self) -> PySide6.QtCore.Qt.Alignment [extrait de alignment.__doc__]
attachedToChartChanged
attachToChart(self) -> None attachToChart(self) -> None [extrait de attachToChart.__doc__]
backgroundVisibleChanged
borderColor(self) -> PySide6.QtGui.QColor borderColor(self) -> PySide6.QtGui.QColor [extrait de borderColor.__doc__]
borderColorChanged
brush(self) -> PySide6.QtGui.QBrush brush(self) -> PySide6.QtGui.QBrush [extrait de brush.__doc__]
childrenChanged
color(self) -> PySide6.QtGui.QColor color(self) -> PySide6.QtGui.QColor [extrait de color.__doc__]
colorChanged
destroyed
detachFromChart(self) -> None detachFromChart(self) -> None [extrait de detachFromChart.__doc__]
enabledChanged
font(self) -> PySide6.QtGui.QFont font(self) -> PySide6.QtGui.QFont [extrait de font.__doc__]
fontChanged
geometryChanged
heightChanged
hideEvent(self, event: PySide6.QtGui.QHideEvent) -> None hideEvent(self, event: PySide6.QtGui.QHideEvent) -> None [extrait de hideEvent.__doc__]
interactiveChanged
isAttachedToChart(self) -> bool isAttachedToChart(self) -> bool [extrait de isAttachedToChart.__doc__]
isBackgroundVisible(self) -> bool isBackgroundVisible(self) -> bool [extrait de isBackgroundVisible.__doc__]
isInteractive(self) -> bool isInteractive(self) -> bool [extrait de isInteractive.__doc__]
labelBrush(self) -> PySide6.QtGui.QBrush labelBrush(self) -> PySide6.QtGui.QBrush [extrait de labelBrush.__doc__]
labelColor(self) -> PySide6.QtGui.QColor labelColor(self) -> PySide6.QtGui.QColor [extrait de labelColor.__doc__]
labelColorChanged
layoutChanged
markers(self, series: Optional[PySide6.QtCharts.QAbstractSeries] = None) -> List[PySide6.QtCharts.QLegendMarker] markers(self, series: Optional[PySide6.QtCharts.QAbstractSeries] = None) -> List[PySide6.QtCharts.QLegendMarker] [extrait de markers.__doc__]
MarkerShape
markerShape(self) -> PySide6.QtCharts.QLegend.MarkerShape markerShape(self) -> PySide6.QtCharts.QLegend.MarkerShape [extrait de markerShape.__doc__]
markerShapeChanged
objectNameChanged
opacityChanged
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__]
parentChanged
pen(self) -> PySide6.QtGui.QPen pen(self) -> PySide6.QtGui.QPen [extrait de pen.__doc__]
reverseMarkers(self) -> bool reverseMarkers(self) -> bool [extrait de reverseMarkers.__doc__]
reverseMarkersChanged
rotationChanged
scaleChanged
setAlignment(self, alignment: PySide6.QtCore.Qt.Alignment) -> None setAlignment(self, alignment: PySide6.QtCore.Qt.Alignment) -> None [extrait de setAlignment.__doc__]
setBackgroundVisible(self, visible: bool = True) -> None setBackgroundVisible(self, visible: bool = True) -> None [extrait de setBackgroundVisible.__doc__]
setBorderColor(self, color: Union[PySide6.QtGui.QColor, PySide6.QtGui.QRgba64, Any, PySide6.QtCore.Qt.GlobalColor, str, int]) -> None setBorderColor(self, color: Union[PySide6.QtGui.QColor, PySide6.QtGui.QRgba64, Any, PySide6.QtCore.Qt.GlobalColor, str, int]) -> None [extrait de setBorderColor.__doc__]
setBrush(self, brush: Union[PySide6.QtGui.QBrush, PySide6.QtCore.Qt.BrushStyle, PySide6.QtCore.Qt.GlobalColor, PySide6.QtGui.QColor, PySide6.QtGui.QGradient, PySide6.QtGui.QImage, PySide6.QtGui.QPixmap]) -> None setBrush(self, brush: Union[PySide6.QtGui.QBrush, PySide6.QtCore.Qt.BrushStyle, PySide6.QtCore.Qt.GlobalColor, PySide6.QtGui.QColor, PySide6.QtGui.QGradient, PySide6.QtGui.QImage, PySide6.QtGui.QPixmap]) -> None [extrait de setBrush.__doc__]
setColor(self, color: Union[PySide6.QtGui.QColor, PySide6.QtGui.QRgba64, Any, PySide6.QtCore.Qt.GlobalColor, str, int]) -> None setColor(self, color: Union[PySide6.QtGui.QColor, PySide6.QtGui.QRgba64, Any, PySide6.QtCore.Qt.GlobalColor, str, int]) -> None [extrait de setColor.__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__]
setInteractive(self, interactive: bool) -> None setInteractive(self, interactive: bool) -> None [extrait de setInteractive.__doc__]
setLabelBrush(self, brush: Union[PySide6.QtGui.QBrush, PySide6.QtCore.Qt.BrushStyle, PySide6.QtCore.Qt.GlobalColor, PySide6.QtGui.QColor, PySide6.QtGui.QGradient, PySide6.QtGui.QImage, PySide6.QtGui.QPixmap]) -> None setLabelBrush(self, brush: Union[PySide6.QtGui.QBrush, PySide6.QtCore.Qt.BrushStyle, PySide6.QtCore.Qt.GlobalColor, PySide6.QtGui.QColor, PySide6.QtGui.QGradient, PySide6.QtGui.QImage, PySide6.QtGui.QPixmap]) -> None [extrait de setLabelBrush.__doc__]
setLabelColor(self, color: Union[PySide6.QtGui.QColor, PySide6.QtGui.QRgba64, Any, PySide6.QtCore.Qt.GlobalColor, str, int]) -> None setLabelColor(self, color: Union[PySide6.QtGui.QColor, PySide6.QtGui.QRgba64, Any, PySide6.QtCore.Qt.GlobalColor, str, int]) -> None [extrait de setLabelColor.__doc__]
setMarkerShape(self, shape: PySide6.QtCharts.QLegend.MarkerShape) -> None setMarkerShape(self, shape: PySide6.QtCharts.QLegend.MarkerShape) -> None [extrait de setMarkerShape.__doc__]
setPen(self, pen: Union[PySide6.QtGui.QPen, PySide6.QtCore.Qt.PenStyle, PySide6.QtGui.QColor]) -> None setPen(self, pen: Union[PySide6.QtGui.QPen, PySide6.QtCore.Qt.PenStyle, PySide6.QtGui.QColor]) -> None [extrait de setPen.__doc__]
setReverseMarkers(self, reverseMarkers: bool = True) -> None setReverseMarkers(self, reverseMarkers: bool = True) -> None [extrait de setReverseMarkers.__doc__]
setShowToolTips(self, show: bool) -> None setShowToolTips(self, show: bool) -> None [extrait de setShowToolTips.__doc__]
showEvent(self, event: PySide6.QtGui.QShowEvent) -> None showEvent(self, event: PySide6.QtGui.QShowEvent) -> None [extrait de showEvent.__doc__]
showToolTips(self) -> bool showToolTips(self) -> bool [extrait de showToolTips.__doc__]
showToolTipsChanged
tr
visibleChanged
widthChanged
xChanged
yChanged
zChanged

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

__init_subclass__, __subclasshook__, actions, addAction, addActions, adjustSize, autoFillBackground, boundingRect, changeEvent, close, closeEvent, event, focusInEvent, focusNextPrevChild, focusOutEvent, focusPolicy, focusWidget, getContentsMargins, getWindowFrameMargins, grabKeyboardEvent, grabMouseEvent, grabShortcut, hoverLeaveEvent, hoverMoveEvent, initStyleOption, insertAction, insertActions, isActiveWindow, itemChange, layout, layoutDirection, moveEvent, paintWindowFrame, palette, polishEvent, propertyChange, rect, releaseShortcut, removeAction, resize, resizeEvent, sceneEvent, setAttribute, setAutoFillBackground, setContentsMargins, setFocusPolicy, setGeometry, setLayout, setLayoutDirection, setPalette, setShortcutAutoRepeat, setShortcutEnabled, setStyle, setTabOrder, setWindowFlags, setWindowFrameMargins, setWindowTitle, shape, size, sizeHint, style, testAttribute, type, ungrabKeyboardEvent, ungrabMouseEvent, unsetLayoutDirection, unsetWindowFrameMargins, updateGeometry, windowFlags, windowFrameEvent, windowFrameGeometry, windowFrameRect, windowFrameSectionAt, windowTitle, windowType

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

__init_subclass__, __subclasshook__, contentsRect, effectiveSizeHint, geometry, getContentsMargins, graphicsItem, isEmpty, isLayout, maximumHeight, maximumSize, maximumWidth, minimumHeight, minimumSize, minimumWidth, ownedByLayout, parentLayoutItem, preferredHeight, preferredSize, preferredWidth, setGeometry, setGraphicsItem, setMaximumHeight, setMaximumSize, setMaximumWidth, setMinimumHeight, setMinimumSize, setMinimumWidth, setOwnedByLayout, setParentLayoutItem, setPreferredHeight, setPreferredSize, setPreferredWidth, setSizePolicy, sizeHint, sizePolicy, updateGeometry

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, boundingRect, boundingRegion, boundingRegionGranularity, CacheMode, cacheMode, childItems, childrenBoundingRect, clearFocus, clipPath, collidesWithItem, collidesWithPath, collidingItems, commonAncestorItem, contains, contextMenuEvent, cursor, data, deviceTransform, dragEnterEvent, dragLeaveEvent, dragMoveEvent, dropEvent, effectiveOpacity, ensureVisible, Extension, 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, isObscuredBy, 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, opaqueArea, 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, shape, show, stackBefore, toGraphicsObject, toolTip, topLevelItem, topLevelWidget, transform, transformations, transformOriginPoint, type, 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__