class QLegend

Inheritance diagram of PySide6.QtCharts.QLegend

Synopsis

Properties

Methods

Signals

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

Detailed Description

class MarkerShape

Note

Properties can be used directly when from __feature__ import true_property is used or via accessor functions otherwise.

property alignmentᅟ: Combination of Qt.AlignmentFlag
Access functions:
property backgroundVisibleᅟ: bool
Access functions:
property borderColorᅟ: QColor
Access functions:
property colorᅟ: QColor
Access functions:
property fontᅟ: QFont
Access functions:
property labelColorᅟ: QColor
Access functions:
property markerShapeᅟ: QLegend.MarkerShape
Access functions:
property reverseMarkersᅟ: bool
Access functions:
property showToolTipsᅟ: bool
Access functions:
alignment()
Return type:

Combination of AlignmentFlag

Getter of property alignmentᅟ .

attachToChart()
attachedToChartChanged(attachedToChart)
Parameters:

attachedToChart – bool

backgroundVisibleChanged(visible)
Parameters:

visible – bool

Notification signal of property backgroundVisibleᅟ .

borderColor()
Return type:

QColor

Getter of property borderColorᅟ .

borderColorChanged(color)
Parameters:

colorQColor

Notification signal of property borderColorᅟ .

brush()
Return type:

QBrush

color()
Return type:

QColor

Getter of property colorᅟ .

colorChanged(color)
Parameters:

colorQColor

Notification signal of property colorᅟ .

detachFromChart()
fontChanged(font)
Parameters:

fontQFont

Notification signal of property fontᅟ .

interactiveChanged(interactive)
Parameters:

interactive – bool

isAttachedToChart()
Return type:

bool

isBackgroundVisible()
Return type:

bool

Getter of property backgroundVisibleᅟ .

isInteractive()
Return type:

bool

labelBrush()
Return type:

QBrush

labelColor()
Return type:

QColor

Getter of property labelColorᅟ .

labelColorChanged(color)
Parameters:

colorQColor

Notification signal of property labelColorᅟ .

markerShape()
Return type:

MarkerShape

Getter of property markerShapeᅟ .

markerShapeChanged(shape)
Parameters:

shapeMarkerShape

Notification signal of property markerShapeᅟ .

markers()
Return type:

.list of QLegendMarker

pen()
Return type:

QPen

reverseMarkers()
Return type:

bool

Getter of property reverseMarkersᅟ .

reverseMarkersChanged(reverseMarkers)
Parameters:

reverseMarkers – bool

Notification signal of property reverseMarkersᅟ .

setAlignment(alignment)
Parameters:

alignment – Combination of AlignmentFlag

Setter of property alignmentᅟ .

setBackgroundVisible([visible=true])
Parameters:

visible – bool

Setter of property backgroundVisibleᅟ .

setBorderColor(color)
Parameters:

colorQColor

Setter of property borderColorᅟ .

setBrush(brush)
Parameters:

brushQBrush

setColor(color)
Parameters:

colorQColor

Setter of property colorᅟ .

setInteractive(interactive)
Parameters:

interactive – bool

setLabelBrush(brush)
Parameters:

brushQBrush

setLabelColor(color)
Parameters:

colorQColor

Setter of property labelColorᅟ .

setMarkerShape(shape)
Parameters:

shapeMarkerShape

Setter of property markerShapeᅟ .

setPen(pen)
Parameters:

penQPen

setReverseMarkers([reverseMarkers=true])
Parameters:

reverseMarkers – bool

Setter of property reverseMarkersᅟ .

setShowToolTips(show)
Parameters:

show – bool

Setter of property showToolTipsᅟ .

showToolTips()
Return type:

bool

Getter of property showToolTipsᅟ .

showToolTipsChanged(showToolTips)
Parameters:

showToolTips – bool

Notification signal of property showToolTipsᅟ .