Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Module « PySide2.QtGui »

Classe « QStandardItemModel »

Informations générales

Héritage

builtins.object
    Object
        QObject
            QAbstractItemModel
                QStandardItemModel

Définition

class QStandardItemModel(QAbstractItemModel):

Description [extrait de QStandardItemModel.__doc__]

QStandardItemModel(self, parent: typing.Union[PySide2.QtCore.QObject, NoneType] = None)
QStandardItemModel(self, rows: int, columns: int, parent: typing.Union[PySide2.QtCore.QObject, NoneType] = None)

Constructeur(s)

Signature du constructeur Description
__new__(*args, **kwargs) Create and return a new object. See help(type) for accurate signature. [extrait de __new__.__doc__]
__init__(self, /, *args, **kwargs) Initialize self. See help(type(self)) for accurate signature. [extrait de __init__.__doc__]

Liste des attributs statiques

Nom de l'attribut Valeur
HorizontalSortHintPySide2.QtCore.QAbstractItemModel.LayoutChangeHint.HorizontalSortHint
NoLayoutChangeHintPySide2.QtCore.QAbstractItemModel.LayoutChangeHint.NoLayoutChangeHint
staticMetaObject<PySide2.QtCore.QMetaObject object at 0x7efe36a7e4c0>
VerticalSortHintPySide2.QtCore.QAbstractItemModel.LayoutChangeHint.VerticalSortHint

Liste des opérateurs

Opérateurs hérités de la classe object

__eq__, __ge__, __gt__, __le__, __lt__, __ne__

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes dépréciées
Signature de la méthodeDescription
__delattr__(self, name) Implement delattr(self, name). [extrait de __delattr__.__doc__]
__setattr__(self, name, value) Implement setattr(self, name, value). [extrait de __setattr__.__doc__]
appendColumn(self, items: typing.Sequence[PySide2.QtGui.QStandardItem]) appendColumn(self, items: typing.Sequence[PySide2.QtGui.QStandardItem]) [extrait de appendColumn.__doc__]
appendRow appendRow(self, item: PySide2.QtGui.QStandardItem) [extrait de appendRow.__doc__]
clear(self) clear(self) [extrait de clear.__doc__]
clearItemData(self, index: PySide2.QtCore.QModelIndex) -> bool clearItemData(self, index: PySide2.QtCore.QModelIndex) -> bool [extrait de clearItemData.__doc__]
columnCount(self, parent: PySide2.QtCore.QModelIndex = Invalid(PySide2.QtCore.QModelIndex)) -> int columnCount(self, parent: PySide2.QtCore.QModelIndex = Invalid(PySide2.QtCore.QModelIndex)) -> int [extrait de columnCount.__doc__]
columnsAboutToBeInserted
columnsAboutToBeMoved
columnsAboutToBeRemoved
columnsInserted
columnsMoved
columnsRemoved
data(self, index: PySide2.QtCore.QModelIndex, role: int = PySide2.QtCore.Qt.ItemDataRole.DisplayRole) -> typing.Any data(self, index: PySide2.QtCore.QModelIndex, role: int = PySide2.QtCore.Qt.ItemDataRole.DisplayRole) -> typing.Any [extrait de data.__doc__]
dataChanged
destroyed
dropMimeData(self, data: PySide2.QtCore.QMimeData, action: PySide2.QtCore.Qt.DropAction, row: int, column: int, parent: PySide2.QtCore.QModelIndex) -> bool dropMimeData(self, data: PySide2.QtCore.QMimeData, action: PySide2.QtCore.Qt.DropAction, row: int, column: int, parent: PySide2.QtCore.QModelIndex) -> bool [extrait de dropMimeData.__doc__]
findItems(self, text: str, flags: PySide2.QtCore.Qt.MatchFlags = PySide2.QtCore.Qt.MatchFlag.MatchExactly, column: int = 0) -> typing.List[PySide2.QtGui.QStandardItem] findItems(self, text: str, flags: PySide2.QtCore.Qt.MatchFlags = PySide2.QtCore.Qt.MatchFlag.MatchExactly, column: int = 0) -> typing.List[PySide2.QtGui.QStandardItem] [extrait de findItems.__doc__]
flags(self, index: PySide2.QtCore.QModelIndex) -> PySide2.QtCore.Qt.ItemFlags flags(self, index: PySide2.QtCore.QModelIndex) -> PySide2.QtCore.Qt.ItemFlags [extrait de flags.__doc__]
hasChildren(self, parent: PySide2.QtCore.QModelIndex = Invalid(PySide2.QtCore.QModelIndex)) -> bool hasChildren(self, parent: PySide2.QtCore.QModelIndex = Invalid(PySide2.QtCore.QModelIndex)) -> bool [extrait de hasChildren.__doc__]
headerData(self, section: int, orientation: PySide2.QtCore.Qt.Orientation, role: int = PySide2.QtCore.Qt.ItemDataRole.DisplayRole) -> typing.Any headerData(self, section: int, orientation: PySide2.QtCore.Qt.Orientation, role: int = PySide2.QtCore.Qt.ItemDataRole.DisplayRole) -> typing.Any [extrait de headerData.__doc__]
headerDataChanged
horizontalHeaderItem(self, column: int) -> PySide2.QtGui.QStandardItem horizontalHeaderItem(self, column: int) -> PySide2.QtGui.QStandardItem [extrait de horizontalHeaderItem.__doc__]
index(self, row: int, column: int, parent: PySide2.QtCore.QModelIndex = Invalid(PySide2.QtCore.QModelIndex)) -> PySide2.QtCore.QModelIndex index(self, row: int, column: int, parent: PySide2.QtCore.QModelIndex = Invalid(PySide2.QtCore.QModelIndex)) -> PySide2.QtCore.QModelIndex [extrait de index.__doc__]
indexFromItem(self, item: PySide2.QtGui.QStandardItem) -> PySide2.QtCore.QModelIndex indexFromItem(self, item: PySide2.QtGui.QStandardItem) -> PySide2.QtCore.QModelIndex [extrait de indexFromItem.__doc__]
insertColumn insertColumn(self, column: int, items: typing.Sequence[PySide2.QtGui.QStandardItem]) [extrait de insertColumn.__doc__]
insertColumns(self, column: int, count: int, parent: PySide2.QtCore.QModelIndex = Invalid(PySide2.QtCore.QModelIndex)) -> bool insertColumns(self, column: int, count: int, parent: PySide2.QtCore.QModelIndex = Invalid(PySide2.QtCore.QModelIndex)) -> bool [extrait de insertColumns.__doc__]
insertRow insertRow(self, row: int, item: PySide2.QtGui.QStandardItem) [extrait de insertRow.__doc__]
insertRows(self, row: int, count: int, parent: PySide2.QtCore.QModelIndex = Invalid(PySide2.QtCore.QModelIndex)) -> bool insertRows(self, row: int, count: int, parent: PySide2.QtCore.QModelIndex = Invalid(PySide2.QtCore.QModelIndex)) -> bool [extrait de insertRows.__doc__]
invisibleRootItem(self) -> PySide2.QtGui.QStandardItem invisibleRootItem(self) -> PySide2.QtGui.QStandardItem [extrait de invisibleRootItem.__doc__]
item(self, row: int, column: int = 0) -> PySide2.QtGui.QStandardItem item(self, row: int, column: int = 0) -> PySide2.QtGui.QStandardItem [extrait de item.__doc__]
itemChanged
itemData(self, index: PySide2.QtCore.QModelIndex) -> typing.Dict[int, typing.Any] itemData(self, index: PySide2.QtCore.QModelIndex) -> typing.Dict[int, typing.Any] [extrait de itemData.__doc__]
itemFromIndex(self, index: PySide2.QtCore.QModelIndex) -> PySide2.QtGui.QStandardItem itemFromIndex(self, index: PySide2.QtCore.QModelIndex) -> PySide2.QtGui.QStandardItem [extrait de itemFromIndex.__doc__]
itemPrototype(self) -> PySide2.QtGui.QStandardItem itemPrototype(self) -> PySide2.QtGui.QStandardItem [extrait de itemPrototype.__doc__]
layoutAboutToBeChanged
layoutChanged
mimeData(self, indexes: typing.List[int]) -> PySide2.QtCore.QMimeData mimeData(self, indexes: typing.List[int]) -> PySide2.QtCore.QMimeData [extrait de mimeData.__doc__]
mimeTypes(self) -> typing.List[str] mimeTypes(self) -> typing.List[str] [extrait de mimeTypes.__doc__]
modelAboutToBeReset
modelReset
objectNameChanged
parent parent(self) -> PySide2.QtCore.QObject [extrait de parent.__doc__]
removeColumns(self, column: int, count: int, parent: PySide2.QtCore.QModelIndex = Invalid(PySide2.QtCore.QModelIndex)) -> bool removeColumns(self, column: int, count: int, parent: PySide2.QtCore.QModelIndex = Invalid(PySide2.QtCore.QModelIndex)) -> bool [extrait de removeColumns.__doc__]
removeRows(self, row: int, count: int, parent: PySide2.QtCore.QModelIndex = Invalid(PySide2.QtCore.QModelIndex)) -> bool removeRows(self, row: int, count: int, parent: PySide2.QtCore.QModelIndex = Invalid(PySide2.QtCore.QModelIndex)) -> bool [extrait de removeRows.__doc__]
rowCount(self, parent: PySide2.QtCore.QModelIndex = Invalid(PySide2.QtCore.QModelIndex)) -> int rowCount(self, parent: PySide2.QtCore.QModelIndex = Invalid(PySide2.QtCore.QModelIndex)) -> int [extrait de rowCount.__doc__]
rowsAboutToBeInserted
rowsAboutToBeMoved
rowsAboutToBeRemoved
rowsInserted
rowsMoved
rowsRemoved
setColumnCount(self, columns: int) setColumnCount(self, columns: int) [extrait de setColumnCount.__doc__]
setData(self, index: PySide2.QtCore.QModelIndex, value: typing.Any, role: int = PySide2.QtCore.Qt.ItemDataRole.EditRole) -> bool setData(self, index: PySide2.QtCore.QModelIndex, value: typing.Any, role: int = PySide2.QtCore.Qt.ItemDataRole.EditRole) -> bool [extrait de setData.__doc__]
setHeaderData(self, section: int, orientation: PySide2.QtCore.Qt.Orientation, value: typing.Any, role: int = PySide2.QtCore.Qt.ItemDataRole.EditRole) -> bool setHeaderData(self, section: int, orientation: PySide2.QtCore.Qt.Orientation, value: typing.Any, role: int = PySide2.QtCore.Qt.ItemDataRole.EditRole) -> bool [extrait de setHeaderData.__doc__]
setHorizontalHeaderItem(self, column: int, item: PySide2.QtGui.QStandardItem) setHorizontalHeaderItem(self, column: int, item: PySide2.QtGui.QStandardItem) [extrait de setHorizontalHeaderItem.__doc__]
setHorizontalHeaderLabels(self, labels: typing.Sequence[str]) setHorizontalHeaderLabels(self, labels: typing.Sequence[str]) [extrait de setHorizontalHeaderLabels.__doc__]
setItem setItem(self, row: int, column: int, item: PySide2.QtGui.QStandardItem) [extrait de setItem.__doc__]
setItemData(self, index: PySide2.QtCore.QModelIndex, roles: typing.Dict[int, typing.Any]) -> bool setItemData(self, index: PySide2.QtCore.QModelIndex, roles: typing.Dict[int, typing.Any]) -> bool [extrait de setItemData.__doc__]
setItemPrototype(self, item: PySide2.QtGui.QStandardItem) setItemPrototype(self, item: PySide2.QtGui.QStandardItem) [extrait de setItemPrototype.__doc__]
setItemRoleNames(self, roleNames: typing.Dict[int, PySide2.QtCore.QByteArray]) setItemRoleNames(self, roleNames: typing.Dict[int, PySide2.QtCore.QByteArray]) [extrait de setItemRoleNames.__doc__]
setRowCount(self, rows: int) setRowCount(self, rows: int) [extrait de setRowCount.__doc__]
setSortRole(self, role: int) setSortRole(self, role: int) [extrait de setSortRole.__doc__]
setVerticalHeaderItem(self, row: int, item: PySide2.QtGui.QStandardItem) setVerticalHeaderItem(self, row: int, item: PySide2.QtGui.QStandardItem) [extrait de setVerticalHeaderItem.__doc__]
setVerticalHeaderLabels(self, labels: typing.Sequence[str]) setVerticalHeaderLabels(self, labels: typing.Sequence[str]) [extrait de setVerticalHeaderLabels.__doc__]
sibling(self, row: int, column: int, idx: PySide2.QtCore.QModelIndex) -> PySide2.QtCore.QModelIndex sibling(self, row: int, column: int, idx: PySide2.QtCore.QModelIndex) -> PySide2.QtCore.QModelIndex [extrait de sibling.__doc__]
sort(self, column: int, order: PySide2.QtCore.Qt.SortOrder = PySide2.QtCore.Qt.SortOrder.AscendingOrder) sort(self, column: int, order: PySide2.QtCore.Qt.SortOrder = PySide2.QtCore.Qt.SortOrder.AscendingOrder) [extrait de sort.__doc__]
sortRole(self) -> int sortRole(self) -> int [extrait de sortRole.__doc__]
supportedDropActions(self) -> PySide2.QtCore.Qt.DropActions supportedDropActions(self) -> PySide2.QtCore.Qt.DropActions [extrait de supportedDropActions.__doc__]
takeColumn(self, column: int) -> typing.List[PySide2.QtGui.QStandardItem] takeColumn(self, column: int) -> typing.List[PySide2.QtGui.QStandardItem] [extrait de takeColumn.__doc__]
takeHorizontalHeaderItem(self, column: int) -> PySide2.QtGui.QStandardItem takeHorizontalHeaderItem(self, column: int) -> PySide2.QtGui.QStandardItem [extrait de takeHorizontalHeaderItem.__doc__]
takeItem(self, row: int, column: int = 0) -> PySide2.QtGui.QStandardItem takeItem(self, row: int, column: int = 0) -> PySide2.QtGui.QStandardItem [extrait de takeItem.__doc__]
takeRow(self, row: int) -> typing.List[PySide2.QtGui.QStandardItem] takeRow(self, row: int) -> typing.List[PySide2.QtGui.QStandardItem] [extrait de takeRow.__doc__]
takeVerticalHeaderItem(self, row: int) -> PySide2.QtGui.QStandardItem takeVerticalHeaderItem(self, row: int) -> PySide2.QtGui.QStandardItem [extrait de takeVerticalHeaderItem.__doc__]
verticalHeaderItem(self, row: int) -> PySide2.QtGui.QStandardItem verticalHeaderItem(self, row: int) -> PySide2.QtGui.QStandardItem [extrait de verticalHeaderItem.__doc__]

Méthodes héritées de la classe QAbstractItemModel

__init_subclass__, __subclasshook__, beginInsertColumns, beginInsertRows, beginMoveColumns, beginMoveRows, beginRemoveColumns, beginRemoveRows, beginResetModel, buddy, canDropMimeData, canFetchMore, changePersistentIndex, changePersistentIndexList, checkIndex, CheckIndexOption, CheckIndexOptions, createIndex, decodeData, encodeData, endInsertColumns, endInsertRows, endMoveColumns, endMoveRows, endRemoveColumns, endRemoveRows, endResetModel, fetchMore, hasIndex, LayoutChangeHint, match, moveColumn, moveColumns, moveRow, moveRows, persistentIndexList, removeColumn, removeRow, resetInternalData, revert, roleNames, span, submit, supportedDragActions

Méthodes héritées de la classe QObject

__getattribute__, __init_subclass__, __repr__, __subclasshook__, blockSignals, childEvent, children, connect, connectNotify, customEvent, deleteLater, disconnect, disconnectNotify, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, emit, event, eventFilter, findChild, findChildren, inherits, installEventFilter, isSignalConnected, isWidgetType, isWindowType, killTimer, metaObject, moveToThread, objectName, property, receivers, registerUserData, removeEventFilter, sender, senderSignalIndex, setObjectName, setParent, setProperty, signalsBlocked, startTimer, thread, timerEvent, tr

Méthodes héritées de la classe Object

__init_subclass__, __subclasshook__

Méthodes héritées de la classe object

__dir__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __sizeof__, __str__