Skip to content

PythonQt.QtGui.QTextList · declarations 001

Back to PythonQt.QtGui.QTextList

add

add(block: Any) -> None

X.add(block)

Supplemental documentation: Qt 5 reference:

void QTextList::add(const QTextBlock \&block)

Makes the given block part of the list.

See also remove() and removeItem().

Upstream PySide2 reference signatures (binding differences may apply):

add(self, block: PySide2.QtGui.QTextBlock) -> None

Source: https://doc.qt.io/archives/qt-5.15/qtextlist.html#add

blockFormatChanged

blockFormatChanged(block: Any) -> Any

X.blockFormatChanged(block)

blockInserted

blockInserted(block: Any) -> Any

X.blockInserted(block)

blockList

blockList() -> tuple

X.blockList() -> tuple

blockRemoved

blockRemoved(block: Any) -> Any

X.blockRemoved(block)

count

count() -> int

X.count() -> int

Supplemental documentation: Qt 5 reference:

int QTextList::count() const

Returns the number of items in the list.

Upstream PySide2 reference signatures (binding differences may apply):

count(self) -> int

Source: https://doc.qt.io/archives/qt-5.15/qtextlist.html#count

destroyed

destroyed(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QTextList.destroyed; argument details are not documented.

format

format() -> Any

X.format() -> PythonQt.QtGui.QTextListFormat

Supplemental documentation: Qt 5 reference:

QTextListFormat QTextList::format() const

Returns the list's format.

See also setFormat().

Upstream PySide2 reference signatures (binding differences may apply):

format(self) -> PySide2.QtGui.QTextListFormat

Source: https://doc.qt.io/archives/qt-5.15/qtextlist.html#format

item

item(i: int) -> Any

X.item(i) -> PythonQt.QtGui.QTextBlock

Supplemental documentation: Qt 5 reference:

QTextBlock QTextList::item(int i) const

Returns the i-th text block in the list.

See also count() and itemText().

Upstream PySide2 reference signatures (binding differences may apply):

item(self, i: int) -> PySide2.QtGui.QTextBlock

Source: https://doc.qt.io/archives/qt-5.15/qtextlist.html#item

itemNumber

itemNumber(arg__1: Any) -> int

X.itemNumber(arg__1) -> int

Supplemental documentation: Qt 5 reference:

int QTextList::itemNumber(const QTextBlock \&block) const

Returns the index of the list item that corresponds to the given block. Returns -1 if the block was not present in the list.

Upstream PySide2 reference signatures (binding differences may apply):

itemNumber(self, arg__1: PySide2.QtGui.QTextBlock) -> int

Source: https://doc.qt.io/archives/qt-5.15/qtextlist.html#itemNumber

itemText

itemText(arg__1: Any) -> str

X.itemText(arg__1) -> str

Supplemental documentation: Qt 5 reference:

QString QTextList::itemText(const QTextBlock \&block) const

Returns the text of the list item that corresponds to the given block.

Upstream PySide2 reference signatures (binding differences may apply):

itemText(self, arg__1: PySide2.QtGui.QTextBlock) -> str

Source: https://doc.qt.io/archives/qt-5.15/qtextlist.html#itemText

objectNameChanged

objectNameChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QTextList.objectNameChanged; argument details are not documented.

remove

remove(arg__1: Any) -> None

X.remove(arg__1)

Supplemental documentation: Qt 5 reference:

void QTextList::remove(const QTextBlock \&block)

Removes the given block from the list.

See also add() and removeItem().

Upstream PySide2 reference signatures (binding differences may apply):

remove(self, arg__1: PySide2.QtGui.QTextBlock) -> None

Source: https://doc.qt.io/archives/qt-5.15/qtextlist.html#remove

removeItem

removeItem(i: int) -> None

X.removeItem(i)

Supplemental documentation: Qt 5 reference:

void QTextList::removeItem(int i)

Removes the item at item position i from the list. When the last item in the list is removed, the list is automatically deleted by the QTextDocument that owns it.

See also add() and remove().

Upstream PySide2 reference signatures (binding differences may apply):

removeItem(self, i: int) -> None

Source: https://doc.qt.io/archives/qt-5.15/qtextlist.html#removeItem

setFormat

setFormat(format: Any) -> None

X.setFormat(format)

Supplemental documentation: Qt 5 reference:

void QTextList::setFormat(const QTextListFormat \&format)

Sets the list's format to format.

See also format().

Upstream PySide2 reference signatures (binding differences may apply):

setFormat(self, format: PySide2.QtGui.QTextFormat) -> None
setFormat(self, format: PySide2.QtGui.QTextListFormat) -> None

Source: https://doc.qt.io/archives/qt-5.15/qtextlist.html#setFormat