QCustom3DLabel — PyQt Documentation v6.9.0 (original) (raw)
PyQt6.QtDataVisualization.QCustom3DLabel
Inherits from QCustom3DItem.
Description¶
The QCustom3DLabel class adds a custom label to a graph.
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.
Methods¶
__init__(parent: QObject = None)
Constructs a custom 3D label with the given parent.
__init__(Optional[str], QFont, QVector3D, QVector3D, QQuaternion, parent: QObject = None)
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.
backgroundColor() → QColor
See also
font() → QFont
isBackgroundEnabled() → bool
TODO
isBorderEnabled() → bool
TODO
isFacingCamera() → bool
TODO
setBackgroundColor(Union[QColor, GlobalColor, int])
See also
setBackgroundEnabled(bool)
setBorderEnabled(bool)
See also
setFacingCamera(bool)
See also
setFont(QFont)
setText(Optional[str])
setTextColor(Union[QColor, GlobalColor, int])
text() → str
textColor() → QColor
Signals¶
backgroundColorChanged(Union[QColor, GlobalColor, int])
TODO
backgroundEnabledChanged(bool)
TODO
borderEnabledChanged(bool)
TODO
facingCameraChanged(bool)
TODO
fontChanged(QFont)
TODO
textChanged(Optional[str])
TODO
textColorChanged(Union[QColor, GlobalColor, int])
TODO