Skip to content

labels

_labels

Custom label widgets.

Classes:

Name Description
FXElidedLabel

A QLabel that elides text with '...' when it doesn't fit.

Classes

FXElidedLabel

FXElidedLabel(text: str = '', parent: Optional[QWidget] = None)

Bases: QLabel


              flowchart TD
              fxgui.fxwidgets._labels.FXElidedLabel[FXElidedLabel]

              

              click fxgui.fxwidgets._labels.FXElidedLabel href "" "fxgui.fxwidgets._labels.FXElidedLabel"
            

A QLabel that elides text with '...' when it doesn't fit.

This label automatically truncates text and adds an ellipsis when the text is too long to fit within the available space.

Methods:

Name Description
resizeEvent

Re-elide text when the label is resized.

setText

Set the text and store the full text for elision.

Functions
resizeEvent
resizeEvent(event) -> None

Re-elide text when the label is resized.

setText
setText(text: str) -> None

Set the text and store the full text for elision.