QCustom3DLabel

The QCustom3DLabel class adds a custom label to a graph. More

Inheritance diagram of PySide6.QtDataVisualization.QCustom3DLabel

Synopsis

Functions

Detailed Description

The text, font, position, scaling, rotation, and colors of a custom label can be set. In addition, the visibility of the borders and background of the label can be toggled. Colors, borders, and background are determined by the active theme unless set explicitly.

Note

In scaling, the z-coordinate has no effect. Setting the same x- and y-coordinates retains the original font dimensions.

See also

addCustomItem()

class PySide6.QtDataVisualization.QCustom3DLabel([parent=None])

PySide6.QtDataVisualization.QCustom3DLabel(text, font, position, scaling, rotation[, parent=None])

Parameters

Constructs a custom 3D label with the given parent.

Constructs a custom 3D label with the given text, font, position, scaling, rotation, and optional parent.

Note

Setting the same x- and y-coordinates for scaling retains the original font dimensions.

PySide6.QtDataVisualization.QCustom3DLabel.backgroundColor()
Return type

PySide6.QtGui.QColor

PySide6.QtDataVisualization.QCustom3DLabel.backgroundColorChanged(color)
Parameters

colorPySide6.QtGui.QColor

PySide6.QtDataVisualization.QCustom3DLabel.backgroundEnabledChanged(enabled)
Parameters

enabled – bool

PySide6.QtDataVisualization.QCustom3DLabel.borderEnabledChanged(enabled)
Parameters

enabled – bool

PySide6.QtDataVisualization.QCustom3DLabel.facingCameraChanged(enabled)
Parameters

enabled – bool

PySide6.QtDataVisualization.QCustom3DLabel.font()
Return type

PySide6.QtGui.QFont

See also

setFont()

PySide6.QtDataVisualization.QCustom3DLabel.fontChanged(font)
Parameters

fontPySide6.QtGui.QFont

PySide6.QtDataVisualization.QCustom3DLabel.isBackgroundEnabled()
Return type

bool

PySide6.QtDataVisualization.QCustom3DLabel.isBorderEnabled()
Return type

bool

PySide6.QtDataVisualization.QCustom3DLabel.isFacingCamera()
Return type

bool

PySide6.QtDataVisualization.QCustom3DLabel.setBackgroundColor(color)
Parameters

colorPySide6.QtGui.QColor

PySide6.QtDataVisualization.QCustom3DLabel.setBackgroundEnabled(enabled)
Parameters

enabled – bool

PySide6.QtDataVisualization.QCustom3DLabel.setBorderEnabled(enabled)
Parameters

enabled – bool

PySide6.QtDataVisualization.QCustom3DLabel.setFacingCamera(enabled)
Parameters

enabled – bool

See also

isFacingCamera()

PySide6.QtDataVisualization.QCustom3DLabel.setFont(font)
Parameters

fontPySide6.QtGui.QFont

See also

font()

PySide6.QtDataVisualization.QCustom3DLabel.setText(text)
Parameters

text – str

See also

text()

PySide6.QtDataVisualization.QCustom3DLabel.setTextColor(color)
Parameters

colorPySide6.QtGui.QColor

See also

textColor()

PySide6.QtDataVisualization.QCustom3DLabel.text()
Return type

str

See also

setText()

PySide6.QtDataVisualization.QCustom3DLabel.textChanged(text)
Parameters

text – str

PySide6.QtDataVisualization.QCustom3DLabel.textColor()
Return type

PySide6.QtGui.QColor

See also

setTextColor()

PySide6.QtDataVisualization.QCustom3DLabel.textColorChanged(color)
Parameters

colorPySide6.QtGui.QColor