Skip to content

PythonQt.QtGui.QTextOption · declarations 001

Back to PythonQt.QtGui.QTextOption

AddSpaceForLineAndParagraphSeparators instance-attribute

AddSpaceForLineAndParagraphSeparators: Any

CenterTab instance-attribute

CenterTab: Any

DelimiterTab instance-attribute

DelimiterTab: Any

Flag instance-attribute

Flag: type

int([x]) -> integer int(x, base=10) -> integer

Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.

If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.

int('0b100', base=0) 4

Flags instance-attribute

Flags: type

int([x]) -> integer int(x, base=10) -> integer

Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.

If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.

int('0b100', base=0) 4

IncludeTrailingSpaces instance-attribute

IncludeTrailingSpaces: Any

LeftTab instance-attribute

LeftTab: Any

ManualWrap instance-attribute

ManualWrap: Any

RightTab instance-attribute

RightTab: Any

ShowLineAndParagraphSeparators instance-attribute

ShowLineAndParagraphSeparators: Any

ShowTabsAndSpaces instance-attribute

ShowTabsAndSpaces: Any

SuppressColors instance-attribute

SuppressColors: Any

Tab instance-attribute

Tab: type

PythonQtInstanceWrapper object

TabType instance-attribute

TabType: type

int([x]) -> integer int(x, base=10) -> integer

Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.

If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.

int('0b100', base=0) 4

WordWrap instance-attribute

WordWrap: Any

WrapAnywhere instance-attribute

WrapAnywhere: Any

WrapAtWordBoundaryOrAnywhere instance-attribute

WrapAtWordBoundaryOrAnywhere: Any

alignment

alignment() -> Any

X.alignment()

Supplemental documentation: Qt 5 reference:

Qt::Alignment QTextOption::alignment() const

Returns the text alignment defined by the option.

See also setAlignment().

Upstream PySide2 reference signatures (binding differences may apply):

alignment(self) -> PySide2.QtCore.Qt.Alignment

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

flags

flags() -> Any

X.flags()

Supplemental documentation: Qt 5 reference:

QTextOption::Flags QTextOption::flags() const

Returns the flags associated with the option.

See also setFlags().

Upstream PySide2 reference signatures (binding differences may apply):

flags(self) -> PySide2.QtGui.QTextOption.Flags

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

setAlignment

setAlignment(alignment: Any) -> None

X.setAlignment(alignment)

Supplemental documentation: Qt 5 reference:

void QTextOption::setAlignment(Qt::Alignment alignment)

Sets the option's text alignment to the specified alignment.

See also alignment().

Upstream PySide2 reference signatures (binding differences may apply):

setAlignment(self, alignment: PySide2.QtCore.Qt.Alignment) -> None

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

setFlags

setFlags(arg0: flags) -> None

X.setFlags(flags)

Supplemental documentation: Qt 5 reference:

void QTextOption::setFlags(QTextOption::Flags flags)

Sets the flags associated with the option to the given flags.

See also flags().

Upstream PySide2 reference signatures (binding differences may apply):

setFlags(self, flags: PySide2.QtGui.QTextOption.Flags) -> None

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

setTabArray

setTabArray(tabStops: Any) -> None

X.setTabArray(tabStops)

Supplemental documentation: Qt 5 reference:

void QTextOption::setTabArray(const QList\<qreal> \&tabStops)

Sets the tab positions for the text layout to those specified by tabStops.

See also tabArray(), setTabStopDistance(), and setTabs().

Upstream PySide2 reference signatures (binding differences may apply):

setTabArray(self, tabStops: typing.Sequence[float]) -> None

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

setTabStop

setTabStop(tabStop: float) -> None

X.setTabStop(tabStop)

Upstream PySide2 reference signatures (binding differences may apply):

setTabStop(self, tabStop: float) -> None

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

setTabs

setTabs(tabStops: Any) -> None

X.setTabs(tabStops)

Supplemental documentation: Qt 5 reference:

void QTextOption::setTabs(const QList\<QTextOption::Tab> \&tabStops)

Sets the tab positions for the text layout to those specified by tabStops.

This function was introduced in Qt 4.4.

See also tabs() and tabStop().

Upstream PySide2 reference signatures (binding differences may apply):

setTabs(self, tabStops: typing.Sequence[PySide2.QtGui.QTextOption.Tab]) -> None

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

setTextDirection

setTextDirection(aDirection: Any) -> None

X.setTextDirection(aDirection)

Supplemental documentation: Qt 5 reference:

void QTextOption::setTextDirection(Qt::LayoutDirection direction)

Sets the direction of the text layout defined by the option to the given direction.

See also textDirection().

Upstream PySide2 reference signatures (binding differences may apply):

setTextDirection(self, aDirection: PySide2.QtCore.Qt.LayoutDirection) -> None

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

setUseDesignMetrics

setUseDesignMetrics(b: bool) -> None

X.setUseDesignMetrics(b)

Supplemental documentation: Qt 5 reference:

void QTextOption::setUseDesignMetrics(bool enable)

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).

See also useDesignMetrics().

Upstream PySide2 reference signatures (binding differences may apply):

setUseDesignMetrics(self, b: bool) -> None

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

setWrapMode

setWrapMode(wrap: Any) -> None

X.setWrapMode(wrap)

Supplemental documentation: Qt 5 reference:

void QTextOption::setWrapMode(QTextOption::WrapMode mode)

Sets the option's text wrap mode to the given mode.

See also wrapMode().

Upstream PySide2 reference signatures (binding differences may apply):

setWrapMode(self, wrap: PySide2.QtGui.QTextOption.WrapMode) -> None

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

tabArray

tabArray() -> tuple

X.tabArray() -> tuple

Supplemental documentation: Qt 5 reference:

QList\<qreal> QTextOption::tabArray() const

Returns a list of tab positions defined for the text layout.

See also setTabArray() and tabStop().

Upstream PySide2 reference signatures (binding differences may apply):

tabArray(self) -> typing.List[float]

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

tabStop

tabStop() -> float

X.tabStop() -> float

Upstream PySide2 reference signatures (binding differences may apply):

tabStop(self) -> float

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

tabs

tabs() -> tuple

X.tabs() -> tuple

Supplemental documentation: Qt 5 reference:

QList\<QTextOption::Tab> QTextOption::tabs() const

Returns a list of tab positions defined for the text layout.

This function was introduced in Qt 4.4.

See also tabStopDistance(), setTabs(), and setTabStop().

Upstream PySide2 reference signatures (binding differences may apply):

tabs(self) -> typing.List[PySide2.QtGui.QTextOption.Tab]

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

textDirection

textDirection() -> Any

X.textDirection()

Supplemental documentation: Qt 5 reference:

Qt::LayoutDirection QTextOption::textDirection() const

Returns the direction of the text layout defined by the option.

See also setTextDirection().

Upstream PySide2 reference signatures (binding differences may apply):

textDirection(self) -> PySide2.QtCore.Qt.LayoutDirection

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

useDesignMetrics

useDesignMetrics() -> bool

X.useDesignMetrics() -> bool

Supplemental documentation: Qt 5 reference:

bool QTextOption::useDesignMetrics() const

Returns true if the layout uses design rather than device metrics; otherwise returns false.

See also setUseDesignMetrics().

Upstream PySide2 reference signatures (binding differences may apply):

useDesignMetrics(self) -> bool

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

wrapMode

wrapMode() -> Any

X.wrapMode()

Supplemental documentation: Qt 5 reference:

QTextOption::WrapMode QTextOption::wrapMode() const

Returns the text wrap mode defined by the option.

See also setWrapMode().

Upstream PySide2 reference signatures (binding differences may apply):

wrapMode(self) -> PySide2.QtGui.QTextOption.WrapMode

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