TextBlockFormat
Qt Base Class: QTextBlockFormat
Signature: QTextBlockFormat(self) -> None
QTextBlockFormat(self, QTextBlockFormat: PySide6.QtGui.QTextBlockFormat) -> None
QTextBlockFormat(self, fmt: PySide6.QtGui.QTextFormat) -> None
Base classes
Name | Children | Inherits |
---|---|---|
TextFormatMixin prettyqt.gui.textformat |
|
|
QTextBlockFormat PySide6.QtGui QTextBlockFormat(self) -> None |
⋔ Inheritance diagram
graph TD
1473245649008["gui.TextBlockFormat"]
1473245646080["gui.TextFormatMixin"]
140713234304496["builtins.object"]
1473300003312["QtGui.QTextBlockFormat"]
1473299700832["QtGui.QTextFormat"]
1473291690208["Shiboken.Object"]
1473245646080 --> 1473245649008
140713234304496 --> 1473245646080
1473300003312 --> 1473245649008
1473299700832 --> 1473300003312
1473291690208 --> 1473299700832
140713234304496 --> 1473291690208
🛈 DocStrings
Bases: TextFormatMixin
, QTextBlockFormat
Source code in prettyqt\gui\textblockformat.py
get_alignment() -> constants.AlignmentStr
get_marker() -> MarkerTypeStr
get_page_break_policy() -> gui.textformat.PageBreakFlagStr
Get the current page break policy.
set_alignment(alignment: constants.AlignmentStr | constants.AlignmentFlag)
Set the alignment of the format.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
alignment |
AlignmentStr | AlignmentFlag
|
alignment for the format |
required |
Source code in prettyqt\gui\textblockformat.py
set_marker(marker: MarkerTypeStr | gui.QTextBlockFormat.MarkerType)
Set the marker.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
marker |
MarkerTypeStr | MarkerType
|
marker |
required |
set_page_break_policy(policy: gui.textformat.PageBreakFlagStr | gui.QTextFormat.PageBreakFlag)
Set page break policy.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
policy |
PageBreakFlagStr | PageBreakFlag
|
page break policy |
required |