StaticText
Base classes
| Name | Children | Inherits |
|---|---|---|
| QStaticText PySide6.QtGui QStaticText(self, /) -> None |
⋔ Inheritance diagram
graph TD
1812323007["gui.StaticText"]
1902944536["QtGui.QStaticText"]
37984305["Shiboken.Object"]
2751680898["builtins.object"]
1902944536 --> 1812323007
37984305 --> 1902944536
2751680898 --> 37984305
🛈 DocStrings
Bases: QStaticText
Source code in prettyqt/gui/statictext.py
get_performance_hint() -> PerformanceHintStr
get_text_format() -> constants.TextFormatStr
Return current text format.
Possible values: "rich", "plain", "auto", "markdown"
set_performance_hint(hint: PerformanceHintStr | QtGui.QStaticText.PerformanceHint)
Set the performance hint.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
hint
|
PerformanceHintStr | PerformanceHint
|
performance hint to use |
required |
set_text_format(text_format: constants.TextFormatStr | constants.TextFormat)
Set the text format.
Allowed values are "rich", "plain", "auto", "markdown"
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
text_format
|
TextFormatStr | TextFormat
|
text format to use |
required |