PythonQt.QtGui.QStandardItemModel · declarations 002
Back to PythonQt.QtGui.QStandardItemModel
removeColumns
removeColumns(column: int, count: int, parent: Any) -> bool
X.removeColumns(column, count, parent) -> bool
Supplemental documentation: Qt 5 reference:
[override virtual] bool QStandardItemModel::removeColumns(int column, int count, const QModelIndex \&parent \= QModelIndex())
Reimplements: QAbstractItemModel::removeColumns(int column, int count, const QModelIndex \&parent).
Upstream PySide2 reference signatures (binding differences may apply):
removeColumns(self, column: int, count: int, parent: PySide2.QtCore.QModelIndex=...) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qstandarditemmodel.html#removeColumns
removeRows
removeRows(row: int, count: int, parent: Any) -> bool
X.removeRows(row, count, parent) -> bool
Supplemental documentation: Qt 5 reference:
[override virtual] bool QStandardItemModel::removeRows(int row, int count, const QModelIndex \&parent \= QModelIndex())
Reimplements: QAbstractItemModel::removeRows(int row, int count, const QModelIndex \&parent).
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/qstandarditemmodel.html#removeRows
rowCount
rowCount(parent: Any) -> int
X.rowCount(parent) -> int
Supplemental documentation: Qt 5 reference:
[override virtual] int QStandardItemModel::rowCount(const QModelIndex \&parent \= QModelIndex()) const
Reimplements: QAbstractItemModel::rowCount(const QModelIndex \&parent) const.
See also setRowCount().
Upstream PySide2 reference signatures (binding differences may apply):
rowCount(self, parent: PySide2.QtCore.QModelIndex=...) -> int
Source: https://doc.qt.io/archives/qt-5.15/qstandarditemmodel.html#rowCount
rowsAboutToBeInserted
rowsAboutToBeInserted(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QStandardItemModel.rowsAboutToBeInserted; argument details are not documented.
rowsAboutToBeMoved
rowsAboutToBeMoved(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QStandardItemModel.rowsAboutToBeMoved; argument details are not documented.
rowsAboutToBeRemoved
rowsAboutToBeRemoved(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QStandardItemModel.rowsAboutToBeRemoved; argument details are not documented.
rowsInserted
rowsInserted(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QStandardItemModel.rowsInserted; argument details are not documented.
rowsMoved
rowsMoved(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QStandardItemModel.rowsMoved; argument details are not documented.
rowsRemoved
rowsRemoved(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QStandardItemModel.rowsRemoved; argument details are not documented.
setColumnCount
setColumnCount(columns: int) -> None
X.setColumnCount(columns)
Supplemental documentation: Qt 5 reference:
void QStandardItemModel::setColumnCount(int columns)
Sets the number of columns in this model to columns. If this is less than columnCount(), the data in the unwanted columns is discarded.
This function was introduced in Qt 4.2.
See also columnCount() and setRowCount().
Upstream PySide2 reference signatures (binding differences may apply):
setColumnCount(self, columns: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qstandarditemmodel.html#setColumnCount
setData
setData(index: Any, value: Any, role: int) -> bool
X.setData(index, value, role) -> bool
Supplemental documentation: Qt 5 reference:
[override virtual] bool QStandardItemModel::setData(const QModelIndex \&index, const QVariant \&value, int role \= Qt::EditRole)
Reimplements: QAbstractItemModel::setData(const QModelIndex \&index, const QVariant \&value, int role).
See also 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/qstandarditemmodel.html#setData
setHeaderData
setHeaderData(section: int, orientation: Any, value: Any, role: int) -> bool
X.setHeaderData(section, orientation, value, role) -> bool
Supplemental documentation: Qt 5 reference:
[override virtual] bool QStandardItemModel::setHeaderData(int section, Qt::Orientation orientation, const QVariant \&value, int role \= Qt::EditRole)
Reimplements: QAbstractItemModel::setHeaderData(int section, Qt::Orientation orientation, const QVariant \&value, int role).
See also headerData().
Upstream PySide2 reference signatures (binding differences may apply):
setHeaderData(self, section: int, orientation: PySide2.QtCore.Qt.Orientation, value: typing.Any, role: int=...) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qstandarditemmodel.html#setHeaderData
setHorizontalHeaderItem
setHorizontalHeaderItem(column: int, item: Any) -> None
X.setHorizontalHeaderItem(column, item)
Supplemental documentation: Qt 5 reference:
void QStandardItemModel::setHorizontalHeaderItem(int column, QStandardItem *item)
Sets the horizontal header item for column to item. The model takes ownership of the item. If necessary, the column count is increased to fit the item. The previous header item (if there was one) is deleted.
This function was introduced in Qt 4.2.
See also horizontalHeaderItem(), setHorizontalHeaderLabels(), and setVerticalHeaderItem().
Upstream PySide2 reference signatures (binding differences may apply):
setHorizontalHeaderItem(self, column: int, item: PySide2.QtGui.QStandardItem) -> None
Source: https://doc.qt.io/archives/qt-5.15/qstandarditemmodel.html#setHorizontalHeaderItem
setHorizontalHeaderLabels
setHorizontalHeaderLabels(labels: Any) -> None
X.setHorizontalHeaderLabels(labels)
Supplemental documentation: Qt 5 reference:
void QStandardItemModel::setHorizontalHeaderLabels(const QStringList \&labels)
Sets the horizontal header labels using labels. If necessary, the column count is increased to the size of labels.
This function was introduced in Qt 4.2.
See also setHorizontalHeaderItem().
Upstream PySide2 reference signatures (binding differences may apply):
setHorizontalHeaderLabels(self, labels: typing.Sequence[str]) -> None
Source: https://doc.qt.io/archives/qt-5.15/qstandarditemmodel.html#setHorizontalHeaderLabels
setItem
setItem(row: int, column: Any, item: Any) -> None
X.setItem(row, column, item)
Supplemental documentation: Qt 5 reference:
void QStandardItemModel::setItem(int row, int column, QStandardItem *item)
Sets the item for the given row and column to item. The model takes ownership of the item. If necessary, the row count and column count are increased to fit the item. The previous item at the given location (if there was one) is deleted.
This function was introduced in Qt 4.2.
See also item().
void QStandardItemModel::setItem(int row, QStandardItem *item)
This is an overloaded function.
Upstream PySide2 reference signatures (binding differences may apply):
setItem(self, row: int, column: int, item: PySide2.QtGui.QStandardItem) -> None
setItem(self, row: int, item: PySide2.QtGui.QStandardItem) -> None
Source: https://doc.qt.io/archives/qt-5.15/qstandarditemmodel.html#setItem
setItemData
setItemData(index: Any, roles: Any) -> bool
X.setItemData(index, roles) -> bool
Supplemental documentation: Qt 5 reference:
[override virtual] bool QStandardItemModel::setItemData(const QModelIndex \&index, const QMap\<int, QVariant> \&roles)
Reimplements: QAbstractItemModel::setItemData(const QModelIndex \&index, const QMap\<int, QVariant> \&roles).
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/qstandarditemmodel.html#setItemData
setItemPrototype
setItemPrototype(item: Any) -> None
X.setItemPrototype(item)
Supplemental documentation: Qt 5 reference:
void QStandardItemModel::setItemPrototype(const QStandardItem *item)
Sets the item prototype for the model to the specified item. The model takes ownership of the prototype.
The item prototype acts as a QStandardItem factory, by relying on the QStandardItem::clone() function. To provide your own prototype, subclass QStandardItem, reimplement QStandardItem::clone() and set the prototype to be an instance of your custom class. Whenever QStandardItemModel needs to create an item on demand (for instance, when a view or item delegate calls setData())), the new items will be instances of your custom class.
This function was introduced in Qt 4.2.
See also itemPrototype() and QStandardItem::clone().
Upstream PySide2 reference signatures (binding differences may apply):
setItemPrototype(self, item: PySide2.QtGui.QStandardItem) -> None
Source: https://doc.qt.io/archives/qt-5.15/qstandarditemmodel.html#setItemPrototype
setItemRoleNames
setItemRoleNames(roleNames: Any) -> None
X.setItemRoleNames(roleNames)
Supplemental documentation: Qt 5 reference:
void QStandardItemModel::setItemRoleNames(const QHash\<int, QByteArray> \&roleNames)
Sets the item role names to roleNames.
Upstream PySide2 reference signatures (binding differences may apply):
setItemRoleNames(self, roleNames: typing.Dict[int, PySide2.QtCore.QByteArray]) -> None
Source: https://doc.qt.io/archives/qt-5.15/qstandarditemmodel.html#setItemRoleNames
setRowCount
setRowCount(rows: int) -> None
X.setRowCount(rows)
Supplemental documentation: Qt 5 reference:
void QStandardItemModel::setRowCount(int rows)
Sets the number of rows in this model to rows. If this is less than rowCount(), the data in the unwanted rows is discarded.
This function was introduced in Qt 4.2.
See also rowCount() and setColumnCount().
Upstream PySide2 reference signatures (binding differences may apply):
setRowCount(self, rows: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qstandarditemmodel.html#setRowCount
setSortRole
setSortRole(role: int) -> None
X.setSortRole(role)
Upstream PySide2 reference signatures (binding differences may apply):
setSortRole(self, role: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qstandarditemmodel.html#setSortRole
setVerticalHeaderItem
setVerticalHeaderItem(row: int, item: Any) -> None
X.setVerticalHeaderItem(row, item)
Supplemental documentation: Qt 5 reference:
void QStandardItemModel::setVerticalHeaderItem(int row, QStandardItem *item)
Sets the vertical header item for row to item. The model takes ownership of the item. If necessary, the row count is increased to fit the item. The previous header item (if there was one) is deleted.
This function was introduced in Qt 4.2.
See also verticalHeaderItem(), setVerticalHeaderLabels(), and setHorizontalHeaderItem().
Upstream PySide2 reference signatures (binding differences may apply):
setVerticalHeaderItem(self, row: int, item: PySide2.QtGui.QStandardItem) -> None
Source: https://doc.qt.io/archives/qt-5.15/qstandarditemmodel.html#setVerticalHeaderItem
setVerticalHeaderLabels
setVerticalHeaderLabels(labels: Any) -> None
X.setVerticalHeaderLabels(labels)
Supplemental documentation: Qt 5 reference:
void QStandardItemModel::setVerticalHeaderLabels(const QStringList \&labels)
Sets the vertical header labels using labels. If necessary, the row count is increased to the size of labels.
This function was introduced in Qt 4.2.
See also setVerticalHeaderItem().
Upstream PySide2 reference signatures (binding differences may apply):
setVerticalHeaderLabels(self, labels: typing.Sequence[str]) -> None
Source: https://doc.qt.io/archives/qt-5.15/qstandarditemmodel.html#setVerticalHeaderLabels
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 QStandardItemModel::sibling(int row, int column, const QModelIndex \&idx) const
Reimplements: QAbstractItemModel::sibling(int row, int column, const QModelIndex \&index) 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/qstandarditemmodel.html#sibling
sort
sort(column: int, order: Any) -> None
X.sort(column, order)
Supplemental documentation: Qt 5 reference:
[override virtual] void QStandardItemModel::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/qstandarditemmodel.html#sort
sortRole
instance-attribute
sortRole: int
Qt 5 reference:
sortRole : int
This property holds the item role that is used to query the model's data when sorting items
The default value is Qt::DisplayRole.
This property was introduced in Qt 4.2.
Access functions:
| int | sortRole() const |
|---|---|
| void | setSortRole(int role) |
See also sort() and QStandardItem::sortChildren().
Source: https://doc.qt.io/archives/qt-5.15/qstandarditemmodel.html#sortRole
supportedDropActions
supportedDropActions() -> Any
X.supportedDropActions()
Supplemental documentation: Qt 5 reference:
[override virtual] Qt::DropActions QStandardItemModel::supportedDropActions() const
Reimplements: QAbstractItemModel::supportedDropActions() const.
QStandardItemModel supports both copy and move.
Upstream PySide2 reference signatures (binding differences may apply):
supportedDropActions(self) -> PySide2.QtCore.Qt.DropActions
Source: https://doc.qt.io/archives/qt-5.15/qstandarditemmodel.html#supportedDropActions
takeColumn
takeColumn(column: int) -> tuple
X.takeColumn(column) -> tuple
Supplemental documentation: Qt 5 reference:
QList\<QStandardItem *> QStandardItemModel::takeColumn(int column)
Removes the given column without deleting the column items, and returns a list of
pointers to the removed items. The model releases ownership of the items. For items in
the column that have not been set, the corresponding pointers in the list will be
nullptr.
This function was introduced in Qt 4.2.
See also takeRow().
Upstream PySide2 reference signatures (binding differences may apply):
takeColumn(self, column: int) -> typing.List[PySide2.QtGui.QStandardItem]
Source: https://doc.qt.io/archives/qt-5.15/qstandarditemmodel.html#takeColumn
takeHorizontalHeaderItem
takeHorizontalHeaderItem(column: int) -> Any
X.takeHorizontalHeaderItem(column) -> PythonQt.QtGui.QStandardItem
Supplemental documentation: Qt 5 reference:
QStandardItem *QStandardItemModel::takeHorizontalHeaderItem(int column)
Removes the horizontal header item at column from the header without deleting it, and returns a pointer to the item. The model releases ownership of the item.
This function was introduced in Qt 4.2.
See also horizontalHeaderItem() and takeVerticalHeaderItem().
Upstream PySide2 reference signatures (binding differences may apply):
takeHorizontalHeaderItem(self, column: int) -> PySide2.QtGui.QStandardItem
Source: https://doc.qt.io/archives/qt-5.15/qstandarditemmodel.html#takeHorizontalHeaderItem
takeItem
takeItem(row: int, column: int) -> Any
X.takeItem(row, column) -> PythonQt.QtGui.QStandardItem
Supplemental documentation: Qt 5 reference:
QStandardItem *QStandardItemModel::takeItem(int row, int column \= 0)
Removes the item at (row, column) without deleting it. The model releases ownership of the item.
This function was introduced in Qt 4.2.
See also item(), takeRow(), and takeColumn().
Upstream PySide2 reference signatures (binding differences may apply):
takeItem(self, row: int, column: int=...) -> PySide2.QtGui.QStandardItem
Source: https://doc.qt.io/archives/qt-5.15/qstandarditemmodel.html#takeItem
takeRow
takeRow(row: int) -> tuple
X.takeRow(row) -> tuple
Supplemental documentation: Qt 5 reference:
QList\<QStandardItem *> QStandardItemModel::takeRow(int row)
Removes the given row without deleting the row items, and returns a list of pointers
to the removed items. The model releases ownership of the items. For items in the row
that have not been set, the corresponding pointers in the list will be nullptr.
This function was introduced in Qt 4.2.
See also takeColumn().
Upstream PySide2 reference signatures (binding differences may apply):
takeRow(self, row: int) -> typing.List[PySide2.QtGui.QStandardItem]
Source: https://doc.qt.io/archives/qt-5.15/qstandarditemmodel.html#takeRow
takeVerticalHeaderItem
takeVerticalHeaderItem(row: int) -> Any
X.takeVerticalHeaderItem(row) -> PythonQt.QtGui.QStandardItem
Supplemental documentation: Qt 5 reference:
QStandardItem *QStandardItemModel::takeVerticalHeaderItem(int row)
Removes the vertical header item at row from the header without deleting it, and returns a pointer to the item. The model releases ownership of the item.
This function was introduced in Qt 4.2.
See also verticalHeaderItem() and takeHorizontalHeaderItem().
Upstream PySide2 reference signatures (binding differences may apply):
takeVerticalHeaderItem(self, row: int) -> PySide2.QtGui.QStandardItem
Source: https://doc.qt.io/archives/qt-5.15/qstandarditemmodel.html#takeVerticalHeaderItem
verticalHeaderItem
verticalHeaderItem(row: int) -> Any
X.verticalHeaderItem(row) -> PythonQt.QtGui.QStandardItem
Supplemental documentation: Qt 5 reference:
QStandardItem *QStandardItemModel::verticalHeaderItem(int row) const
Returns the vertical header item for row row if one has been set; otherwise returns
nullptr.
This function was introduced in Qt 4.2.
See also setVerticalHeaderItem() and horizontalHeaderItem().
Upstream PySide2 reference signatures (binding differences may apply):
verticalHeaderItem(self, row: int) -> PySide2.QtGui.QStandardItem
Source: https://doc.qt.io/archives/qt-5.15/qstandarditemmodel.html#verticalHeaderItem