PySide6.QtGraphs.QCustom3DLabel¶
- class QCustom3DLabel¶
- The - QCustom3DLabelclass adds a custom label to a graph.- Details- 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 - Synopsis¶- Properties¶- backgroundColorᅟ- Color for the label background, if enabled
- backgroundVisibleᅟ- Whether the label background is visible
- borderVisibleᅟ- Whether label borders are visible
- facingCameraᅟ- Whether the label will always face the camera
- fontᅟ- To be used for the label
- textᅟ- For the label
- textColorᅟ- Color for the label text
 - Methods¶- def - __init__()
- def - font()
- def - isFacingCamera()
- def - setFont()
- def - setText()
- def - setTextColor()
- def - text()
- def - textColor()
 - 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 - Note - Properties can be used directly when - from __feature__ import true_propertyis used or via accessor functions otherwise.- This property holds The color for the label background, if enabled.. - Defaults to - Qt::gray.- See also - backgroundVisible- Access functions:
 - property backgroundVisibleᅟ: bool¶
 - This property holds Whether the label background is visible.. - If set to - false,- backgroundColor()has no effect. Defaults to- true.- Access functions:
 - property borderVisibleᅟ: bool¶
 - This property holds Whether label borders are visible.. - Defaults to - true.- Access functions:
 - property facingCameraᅟ: bool¶
 - This property holds Whether the label will always face the camera.. - Defaults to - false. If set to- true,- rotation()has no effect.- Access functions:
 - This property holds The font to be used for the label.. - Defaults to - QFont("Arial", 20). Special formatting (for example, outlined) is not supported.- Access functions:
- Signal - fontChanged()
 
 - property textᅟ: str¶
 - This property holds The text for the label.. - Rich text is not supported. - Access functions:
- Signal - textChanged()
 
 - This property holds The color for the label text.. - Also affects the label border, if enabled. Defaults to - Qt::white.- See also - borderVisible- Access functions:
 - Constructs a custom 3D label with the given - parent.- __init__(text, font, position, scaling, rotation[, parent=None])
- Parameters:
- text – str 
- font – - QFont
- position – - QVector3D
- scaling – - QVector3D
- rotation – - QQuaternion
- parent – - QObject
 
 
 - 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 - scalingretains the original font dimensions.- backgroundColor()¶
- Return type:
 - See also 
 - Getter of property - backgroundColorᅟ.- Notification signal of property - backgroundColorᅟ.- backgroundVisibleChanged(visible)¶
- Parameters:
- visible – bool 
 
 - Notification signal of property - backgroundVisibleᅟ.- borderVisibleChanged(visible)¶
- Parameters:
- visible – bool 
 
 - Notification signal of property - borderVisibleᅟ.- facingCameraChanged(enabled)¶
- Parameters:
- enabled – bool 
 
 - Notification signal of property - facingCameraᅟ.- Getter of property - fontᅟ.- Notification signal of property - fontᅟ.- isBackgroundVisible()¶
- Return type:
- bool 
 
 - Getter of property - backgroundVisibleᅟ.- isBorderVisible()¶
- Return type:
- bool 
 
 - Getter of property - borderVisibleᅟ.- isFacingCamera()¶
- Return type:
- bool 
 
 - Getter of property - facingCameraᅟ.- Setter of property - backgroundColorᅟ.- setBackgroundVisible(visible)¶
- Parameters:
- visible – bool 
 - See also 
 - Setter of property - backgroundVisibleᅟ.- setBorderVisible(visible)¶
- Parameters:
- visible – bool 
 - See also 
 - Setter of property - borderVisibleᅟ.- setFacingCamera(enabled)¶
- Parameters:
- enabled – bool 
 - See also 
 - Setter of property - facingCameraᅟ.- Setter of property - fontᅟ.- Setter of property - textᅟ.- Setter of property - textColorᅟ.- Getter of property - textᅟ.- textChanged(text)¶
- Parameters:
- text – str 
 
 - Notification signal of property - textᅟ.- textColor()¶
- Return type:
 - See also 
 - Getter of property - textColorᅟ.- Notification signal of property - textColorᅟ.