StaticText
Qt Base Class: QStaticText
Signature: QStaticText(self) -> None
QStaticText(self, other: PySide6.QtGui.QStaticText) -> None
QStaticText(self, text: str) -> None
Base classes
Name | Children | Inherits |
---|---|---|
QStaticText PySide6.QtGui QStaticText(self) -> None |
⋔ Inheritance diagram
graph TD
1473245581664["gui.StaticText"]
1473300164352["QtGui.QStaticText"]
1473291690208["Shiboken.Object"]
140713234304496["builtins.object"]
1473300164352 --> 1473245581664
1473291690208 --> 1473300164352
140713234304496 --> 1473291690208
🛈 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 |