Skip to content

PythonQt.Qt.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 (shared captured text)
CenterTab attribute Any (shared captured text)
DelimiterTab attribute Any (shared captured text)
Flag attribute type Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text)
Flags attribute type Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text)
IncludeTrailingSpaces attribute Any (shared captured text)
LeftTab attribute Any (shared captured text)
ManualWrap attribute Any (shared captured text)
NoWrap attribute Any (shared captured text)
RightTab attribute Any (shared captured text)
ShowLineAndParagraphSeparators attribute Any (shared captured text)
ShowTabsAndSpaces attribute Any (shared captured text)
SuppressColors attribute Any (shared captured text)
Tab attribute type (shared captured text)
TabType attribute type Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text)
WordWrap attribute Any (shared captured text)
WrapAnywhere attribute Any (shared captured text)
WrapAtWordBoundaryOrAnywhere attribute Any (shared captured text)
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. (shared captured text)
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. (shared captured text)
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. (shared captured text)
setFlags function (self, arg0: flags) -> None Sets the flags associated with the option to the given flags. (shared captured text)
setTabArray function (self, tabStops: Any) -> None Sets the tab positions for the text layout to those specified by tabStops. (shared captured text)
setTabStop function (self, tabStop: float) -> None (shared captured text)
setTabs function (self, tabStops: Any) -> None Sets the tab positions for the text layout to those specified by tabStops. (shared captured text)
setTextDirection function (self, aDirection: Any) -> None Sets the direction of the text layout defined by the option to the given direction. (shared captured text)
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). (shared captured text)
setWrapMode function (self, wrap: Any) -> None Sets the option's text wrap mode to the given mode. (shared captured text)
tabArray function (self) -> tuple X.tabArray() -> tuple (shared captured text)
tabStop function (self) -> float X.tabStop() -> float (shared captured text)
tabs function (self) -> tuple X.tabs() -> tuple (shared captured text)
textDirection function (self) -> Any Returns the direction of the text layout defined by the option. (shared captured text)
useDesignMetrics function (self) -> bool X.useDesignMetrics() -> bool (shared captured text)
wrapMode function (self) -> Any Returns the text wrap mode defined by the option. (shared captured text)