Skip to content

PythonQt.QtGui.QStringListModel · declarations 001

Back to PythonQt.QtGui.QStringListModel

columnsAboutToBeInserted

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

Native PythonQt.QtGui.QStringListModel.columnsAboutToBeInserted; argument details are not documented.

columnsAboutToBeMoved

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

Native PythonQt.QtGui.QStringListModel.columnsAboutToBeMoved; argument details are not documented.

columnsAboutToBeRemoved

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

Native PythonQt.QtGui.QStringListModel.columnsAboutToBeRemoved; argument details are not documented.

columnsInserted

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

Native PythonQt.QtGui.QStringListModel.columnsInserted; argument details are not documented.

columnsMoved

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

Native PythonQt.QtGui.QStringListModel.columnsMoved; argument details are not documented.

columnsRemoved

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

Native PythonQt.QtGui.QStringListModel.columnsRemoved; argument details are not documented.

data

data(index: Any, role: int) -> Any

X.data(index, role) -> object

Supplemental documentation: Qt 5 reference:

[override virtual] QVariant QStringListModel::data(const QModelIndex \&index, int role \= Qt::DisplayRole) const

Reimplements: QAbstractItemModel::data(const QModelIndex \&index, int role) const.

Returns data for the specified role, from the item with the given index.

If the view requests an invalid index, an invalid variant is returned.

See also setData().

Upstream PySide2 reference signatures (binding differences may apply):

data(self, index: PySide2.QtCore.QModelIndex, role: int=...) -> typing.Any

Source: https://doc.qt.io/archives/qt-5.15/qstringlistmodel.html#data

dataChanged

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

Native PythonQt.QtGui.QStringListModel.dataChanged; argument details are not documented.

destroyed

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

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

dropMimeData

dropMimeData(data: Any, action: Any, row: Any, column: Any, parent: Any) -> bool

X.dropMimeData(data, action, row, column, parent) -> bool

flags

flags(index: Any) -> Any

X.flags(index)

Supplemental documentation: Qt 5 reference:

[override virtual] Qt::ItemFlags QStringListModel::flags(const QModelIndex \&index) const

Reimplements: QAbstractListModel::flags(const QModelIndex \&index) const.

Returns the flags for the item with the given index.

Valid items are enabled, selectable, editable, drag enabled and drop enabled.

See also QAbstractItemModel::flags().

Upstream PySide2 reference signatures (binding differences may apply):

flags(self, index: PySide2.QtCore.QModelIndex) -> PySide2.QtCore.Qt.ItemFlags

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

headerDataChanged

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

Native PythonQt.QtGui.QStringListModel.headerDataChanged; argument details are not documented.

insertRows

insertRows(row: int, count: int, parent: Any) -> bool

X.insertRows(row, count, parent) -> bool

Supplemental documentation: Qt 5 reference:

[override virtual] bool QStringListModel::insertRows(int row, int count, const QModelIndex \&parent \= QModelIndex())

Reimplements: QAbstractItemModel::insertRows(int row, int count, const QModelIndex \&parent).

Inserts count rows into the model, beginning at the given row.

The parent index of the rows is optional and is only used for consistency with QAbstractItemModel. By default, a null index is specified, indicating that the rows are inserted in the top level of the model.

Returns true if the insertion was successful.

See also QAbstractItemModel::insertRows().

Upstream PySide2 reference signatures (binding differences may apply):

insertRows(self, row: int, count: int, parent: PySide2.QtCore.QModelIndex=...) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qstringlistmodel.html#insertRows

itemData

itemData(index: Any) -> dict

X.itemData(index) -> dict

Supplemental documentation: Qt 5 reference:

[override virtual] QMap\<int, QVariant> QStringListModel::itemData(const QModelIndex \&index) const

Reimplements: QAbstractItemModel::itemData(const QModelIndex \&index) const.

This function was introduced in Qt 5.13.

See also setItemData().

Upstream PySide2 reference signatures (binding differences may apply):

itemData(self, index: PySide2.QtCore.QModelIndex) -> typing.Dict[int, typing.Any]

Source: https://doc.qt.io/archives/qt-5.15/qstringlistmodel.html#itemData

layoutAboutToBeChanged

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

Native PythonQt.QtGui.QStringListModel.layoutAboutToBeChanged; argument details are not documented.

layoutChanged

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

Native PythonQt.QtGui.QStringListModel.layoutChanged; argument details are not documented.

modelAboutToBeReset

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

Native PythonQt.QtGui.QStringListModel.modelAboutToBeReset; argument details are not documented.

modelReset

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

Native PythonQt.QtGui.QStringListModel.modelReset; argument details are not documented.

moveRows

moveRows(sourceParent: Any, sourceRow: int, count: int, destinationParent: Any, destinationChild: int) -> bool

X.moveRows(sourceParent, sourceRow, count, destinationParent, destinationChild) -> bool

Supplemental documentation: Qt 5 reference:

[override virtual] bool QStringListModel::moveRows(const QModelIndex \&sourceParent, int sourceRow, int count, const QModelIndex \&destinationParent, int destinationChild)

Reimplements: QAbstractItemModel::moveRows(const QModelIndex \&sourceParent, int sourceRow, int count, const QModelIndex \&destinationParent, int destinationChild).

This function was introduced in Qt 5.13.

Upstream PySide2 reference signatures (binding differences may apply):

moveRows(self, sourceParent: PySide2.QtCore.QModelIndex, sourceRow: int, count: int, destinationParent: PySide2.QtCore.QModelIndex, destinationChild: int) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qstringlistmodel.html#moveRows

objectNameChanged

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

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

removeRows

removeRows(row: int, count: int, parent: Any) -> bool

X.removeRows(row, count, parent) -> bool

Supplemental documentation: Qt 5 reference:

[override virtual] bool QStringListModel::removeRows(int row, int count, const QModelIndex \&parent \= QModelIndex())

Reimplements: QAbstractItemModel::removeRows(int row, int count, const QModelIndex \&parent).

Removes count rows from the model, beginning at the given row.

The parent index of the rows is optional and is only used for consistency with QAbstractItemModel. By default, a null index is specified, indicating that the rows are removed in the top level of the model.

Returns true if the row removal was successful.

See also QAbstractItemModel::removeRows().

Upstream PySide2 reference signatures (binding differences may apply):

removeRows(self, row: int, count: int, parent: PySide2.QtCore.QModelIndex=...) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qstringlistmodel.html#removeRows

rowCount

rowCount(parent: Any) -> int

X.rowCount(parent) -> int

Supplemental documentation: Qt 5 reference:

[override virtual] int QStringListModel::rowCount(const QModelIndex \&parent \= QModelIndex()) const

Reimplements: QAbstractItemModel::rowCount(const QModelIndex \&parent) const.

Returns the number of rows in the model. This value corresponds to the number of items in the model's internal string list.

The optional parent argument is in most models used to specify the parent of the rows to be counted. Because this is a list if a valid parent is specified, the result will always be 0.

See also insertRows(), removeRows(), and QAbstractItemModel::rowCount().

Upstream PySide2 reference signatures (binding differences may apply):

rowCount(self, parent: PySide2.QtCore.QModelIndex=...) -> int

Source: https://doc.qt.io/archives/qt-5.15/qstringlistmodel.html#rowCount

rowsAboutToBeInserted

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

Native PythonQt.QtGui.QStringListModel.rowsAboutToBeInserted; argument details are not documented.

rowsAboutToBeMoved

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

Native PythonQt.QtGui.QStringListModel.rowsAboutToBeMoved; argument details are not documented.

rowsAboutToBeRemoved

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

Native PythonQt.QtGui.QStringListModel.rowsAboutToBeRemoved; argument details are not documented.

rowsInserted

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

Native PythonQt.QtGui.QStringListModel.rowsInserted; argument details are not documented.

rowsMoved

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

Native PythonQt.QtGui.QStringListModel.rowsMoved; argument details are not documented.

rowsRemoved

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

Native PythonQt.QtGui.QStringListModel.rowsRemoved; argument details are not documented.

setData

setData(index: Any, value: Any, role: int) -> bool

X.setData(index, value, role) -> bool

Supplemental documentation: Qt 5 reference:

[override virtual] bool QStringListModel::setData(const QModelIndex \&index, const QVariant \&value, int role \= Qt::EditRole)

Reimplements: QAbstractItemModel::setData(const QModelIndex \&index, const QVariant \&value, int role).

Sets the data for the specified role in the item with the given index in the model, to the provided value.

The dataChanged() signal is emitted if the item is changed. Returns true after emitting the dataChanged() signal.

See also Qt::ItemDataRole and data().

Upstream PySide2 reference signatures (binding differences may apply):

setData(self, index: PySide2.QtCore.QModelIndex, value: typing.Any, role: int=...) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qstringlistmodel.html#setData

setItemData

setItemData(index: Any, roles: Any) -> bool

X.setItemData(index, roles) -> bool

Supplemental documentation: Qt 5 reference:

[override virtual] bool QStringListModel::setItemData(const QModelIndex \&index, const QMap\<int, QVariant> \&roles)

Reimplements: QAbstractItemModel::setItemData(const QModelIndex \&index, const QMap\<int, QVariant> \&roles).

If roles contains both Qt::DisplayRole and Qt::EditRole, the latter will take precedence

This function was introduced in Qt 5.13.

See also itemData().

Upstream PySide2 reference signatures (binding differences may apply):

setItemData(self, index: PySide2.QtCore.QModelIndex, roles: typing.Dict[int, typing.Any]) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qstringlistmodel.html#setItemData

setStringList

setStringList(strings: Any) -> None

X.setStringList(strings)

Supplemental documentation: Qt 5 reference:

void QStringListModel::setStringList(const QStringList \&strings)

Sets the model's internal string list to strings. The model will notify any attached views that its underlying data has changed.

See also stringList() and dataChanged().

Upstream PySide2 reference signatures (binding differences may apply):

setStringList(self, strings: typing.Sequence[str]) -> None

Source: https://doc.qt.io/archives/qt-5.15/qstringlistmodel.html#setStringList

sibling

sibling(row: int, column: int, idx: Any) -> Any

X.sibling(row, column, idx) -> PythonQt.QtCore.QModelIndex

Supplemental documentation: Qt 5 reference:

[override virtual] QModelIndex QStringListModel::sibling(int row, int column, const QModelIndex \&idx) const

Reimplements: QAbstractListModel::sibling(int row, int column, const QModelIndex \&idx) const.

Upstream PySide2 reference signatures (binding differences may apply):

sibling(self, row: int, column: int, idx: PySide2.QtCore.QModelIndex) -> PySide2.QtCore.QModelIndex

Source: https://doc.qt.io/archives/qt-5.15/qstringlistmodel.html#sibling

sort

sort(column: int, order: Any) -> None

X.sort(column, order)

Supplemental documentation: Qt 5 reference:

[override virtual] void QStringListModel::sort(int column, Qt::SortOrder order \= Qt::AscendingOrder)

Reimplements: QAbstractItemModel::sort(int column, Qt::SortOrder order).

Upstream PySide2 reference signatures (binding differences may apply):

sort(self, column: int, order: PySide2.QtCore.Qt.SortOrder=...) -> None

Source: https://doc.qt.io/archives/qt-5.15/qstringlistmodel.html#sort

stringList

stringList() -> tuple

X.stringList() -> tuple

Supplemental documentation: Qt 5 reference:

QStringList QStringListModel::stringList() const

Returns the string list used by the model to store data.

See also setStringList().

Upstream PySide2 reference signatures (binding differences may apply):

stringList(self) -> typing.List[str]

Source: https://doc.qt.io/archives/qt-5.15/qstringlistmodel.html#stringList

supportedDropActions

supportedDropActions() -> Any

X.supportedDropActions()

Supplemental documentation: Qt 5 reference:

[override virtual] Qt::DropActions QStringListModel::supportedDropActions() const

Reimplements: QAbstractItemModel::supportedDropActions() const.

Upstream PySide2 reference signatures (binding differences may apply):

supportedDropActions(self) -> PySide2.QtCore.Qt.DropActions

Source: https://doc.qt.io/archives/qt-5.15/qstringlistmodel.html#supportedDropActions