Skip to content

PythonQt.QtGui.QTextOption

QTextOption

PythonQtInstanceWrapper object

Native bases: PythonQtInstanceWrapper

Supplemental documentation: Qt 5 reference:

Detailed Description

QTextOption is used to encapsulate common rich text properties in a single object. It contains information about text alignment, layout direction, word wrapping, and other standard properties associated with text rendering and layout.

Source: https://doc.qt.io/archives/qt-5.15/qtextoption.html

Complete member index

Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.

Member Kind Signature Summary
AddSpaceForLineAndParagraphSeparators attribute Any
CenterTab attribute Any
DelimiterTab attribute Any
Flag attribute type Convert a number or string to an integer, or return 0 if no arguments are given.
Flags attribute type Convert a number or string to an integer, or return 0 if no arguments are given.
IncludeTrailingSpaces attribute Any
LeftTab attribute Any
ManualWrap attribute Any
NoWrap attribute Any (shared captured text)
RightTab attribute Any
ShowLineAndParagraphSeparators attribute Any
ShowTabsAndSpaces attribute Any
SuppressColors attribute Any
Tab attribute type
TabType attribute type Convert a number or string to an integer, or return 0 if no arguments are given.
WordWrap attribute Any
WrapAnywhere attribute Any
WrapAtWordBoundaryOrAnywhere attribute Any
WrapMode attribute type Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text)
__init__ function (self, *args: Any, **kwargs: Any) -> None Native constructor; consult class documentation for supported overloads. (shared captured text)
alignment function (self) -> Any Returns the text alignment defined by the option.
className function (self, *args: Any, **kwargs: Any) -> Any Return the classname of the object (shared captured text)
delete function (self, *args: Any, **kwargs: Any) -> Any Deletes the C++ object (at your own risk, my friend!) (shared captured text)
flags function (self) -> Any Returns the flags associated with the option.
help function (self, *args: Any, **kwargs: Any) -> Any Shows the help of available methods for this class (shared captured text)
inherits function (self, *args: Any, **kwargs: Any) -> Any Returns if the class inherits or is of given type name (shared captured text)
setAlignment function (self, alignment: Any) -> None Sets the option's text alignment to the specified alignment.
setFlags function (self, arg0: flags) -> None Sets the flags associated with the option to the given flags.
setTabArray function (self, tabStops: Any) -> None Sets the tab positions for the text layout to those specified by tabStops.
setTabStop function (self, tabStop: float) -> None
setTabs function (self, tabStops: Any) -> None Sets the tab positions for the text layout to those specified by tabStops.
setTextDirection function (self, aDirection: Any) -> None Sets the direction of the text layout defined by the option to the given direction.
setUseDesignMetrics function (self, b: bool) -> None If enable is true then the layout will use design metrics; otherwise it will use the metrics of the paint device (which is the default behavior).
setWrapMode function (self, wrap: Any) -> None Sets the option's text wrap mode to the given mode.
tabArray function (self) -> tuple X.tabArray() -> tuple
tabStop function (self) -> float X.tabStop() -> float
tabs function (self) -> tuple X.tabs() -> tuple
textDirection function (self) -> Any Returns the direction of the text layout defined by the option.
useDesignMetrics function (self) -> bool X.useDesignMetrics() -> bool
wrapMode function (self) -> Any Returns the text wrap mode defined by the option.