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.QtCore »

Classe « QAbstractItemModel »

Informations générales

Héritage

builtins.object
    Object
        QObject
            QAbstractItemModel

Définition

class QAbstractItemModel(QObject):

Description [extrait de QAbstractItemModel.__doc__]

QAbstractItemModel(self, 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 0x7efe36bf3540>
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__]
beginInsertColumns(self, parent: PySide2.QtCore.QModelIndex, first: int, last: int) beginInsertColumns(self, parent: PySide2.QtCore.QModelIndex, first: int, last: int) [extrait de beginInsertColumns.__doc__]
beginInsertRows(self, parent: PySide2.QtCore.QModelIndex, first: int, last: int) beginInsertRows(self, parent: PySide2.QtCore.QModelIndex, first: int, last: int) [extrait de beginInsertRows.__doc__]
beginMoveColumns(self, sourceParent: PySide2.QtCore.QModelIndex, sourceFirst: int, sourceLast: int, destinationParent: PySide2.QtCore.QModelIndex, destinationColumn: int) -> bool beginMoveColumns(self, sourceParent: PySide2.QtCore.QModelIndex, sourceFirst: int, sourceLast: int, destinationParent: PySide2.QtCore.QModelIndex, destinationColumn: int) -> bool [extrait de beginMoveColumns.__doc__]
beginMoveRows(self, sourceParent: PySide2.QtCore.QModelIndex, sourceFirst: int, sourceLast: int, destinationParent: PySide2.QtCore.QModelIndex, destinationRow: int) -> bool beginMoveRows(self, sourceParent: PySide2.QtCore.QModelIndex, sourceFirst: int, sourceLast: int, destinationParent: PySide2.QtCore.QModelIndex, destinationRow: int) -> bool [extrait de beginMoveRows.__doc__]
beginRemoveColumns(self, parent: PySide2.QtCore.QModelIndex, first: int, last: int) beginRemoveColumns(self, parent: PySide2.QtCore.QModelIndex, first: int, last: int) [extrait de beginRemoveColumns.__doc__]
beginRemoveRows(self, parent: PySide2.QtCore.QModelIndex, first: int, last: int) beginRemoveRows(self, parent: PySide2.QtCore.QModelIndex, first: int, last: int) [extrait de beginRemoveRows.__doc__]
beginResetModel(self) beginResetModel(self) [extrait de beginResetModel.__doc__]
buddy(self, index: PySide2.QtCore.QModelIndex) -> PySide2.QtCore.QModelIndex buddy(self, index: PySide2.QtCore.QModelIndex) -> PySide2.QtCore.QModelIndex [extrait de buddy.__doc__]
canDropMimeData(self, data: PySide2.QtCore.QMimeData, action: PySide2.QtCore.Qt.DropAction, row: int, column: int, parent: PySide2.QtCore.QModelIndex) -> bool canDropMimeData(self, data: PySide2.QtCore.QMimeData, action: PySide2.QtCore.Qt.DropAction, row: int, column: int, parent: PySide2.QtCore.QModelIndex) -> bool [extrait de canDropMimeData.__doc__]
canFetchMore(self, parent: PySide2.QtCore.QModelIndex) -> bool canFetchMore(self, parent: PySide2.QtCore.QModelIndex) -> bool [extrait de canFetchMore.__doc__]
changePersistentIndex(self, from_: PySide2.QtCore.QModelIndex, to: PySide2.QtCore.QModelIndex) changePersistentIndex(self, from_: PySide2.QtCore.QModelIndex, to: PySide2.QtCore.QModelIndex) [extrait de changePersistentIndex.__doc__]
changePersistentIndexList(self, from_: typing.List[int], to: typing.List[int]) changePersistentIndexList(self, from_: typing.List[int], to: typing.List[int]) [extrait de changePersistentIndexList.__doc__]
checkIndex(self, index: PySide2.QtCore.QModelIndex, options: PySide2.QtCore.QAbstractItemModel.CheckIndexOptions = Instance(PySide2.QtCore.QAbstractItemModel.CheckIndexOptions.NoOption)) -> bool checkIndex(self, index: PySide2.QtCore.QModelIndex, options: PySide2.QtCore.QAbstractItemModel.CheckIndexOptions = Instance(PySide2.QtCore.QAbstractItemModel.CheckIndexOptions.NoOption)) -> bool [extrait de checkIndex.__doc__]
CheckIndexOption
CheckIndexOptions
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
createIndex createIndex(self, row: int, column: int, id: int = 0) -> PySide2.QtCore.QModelIndex [extrait de createIndex.__doc__]
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
decodeData(self, row: int, column: int, parent: PySide2.QtCore.QModelIndex, stream: PySide2.QtCore.QDataStream) -> bool decodeData(self, row: int, column: int, parent: PySide2.QtCore.QModelIndex, stream: PySide2.QtCore.QDataStream) -> bool [extrait de decodeData.__doc__]
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__]
encodeData(self, indexes: typing.List[int], stream: PySide2.QtCore.QDataStream) encodeData(self, indexes: typing.List[int], stream: PySide2.QtCore.QDataStream) [extrait de encodeData.__doc__]
endInsertColumns(self) endInsertColumns(self) [extrait de endInsertColumns.__doc__]
endInsertRows(self) endInsertRows(self) [extrait de endInsertRows.__doc__]
endMoveColumns(self) endMoveColumns(self) [extrait de endMoveColumns.__doc__]
endMoveRows(self) endMoveRows(self) [extrait de endMoveRows.__doc__]
endRemoveColumns(self) endRemoveColumns(self) [extrait de endRemoveColumns.__doc__]
endRemoveRows(self) endRemoveRows(self) [extrait de endRemoveRows.__doc__]
endResetModel(self) endResetModel(self) [extrait de endResetModel.__doc__]
fetchMore(self, parent: PySide2.QtCore.QModelIndex) fetchMore(self, parent: PySide2.QtCore.QModelIndex) [extrait de fetchMore.__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__]
hasIndex(self, row: int, column: int, parent: PySide2.QtCore.QModelIndex = Invalid(PySide2.QtCore.QModelIndex)) -> bool hasIndex(self, row: int, column: int, parent: PySide2.QtCore.QModelIndex = Invalid(PySide2.QtCore.QModelIndex)) -> bool [extrait de hasIndex.__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
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__]
insertColumn(self, column: int, parent: PySide2.QtCore.QModelIndex = Invalid(PySide2.QtCore.QModelIndex)) -> bool insertColumn(self, column: int, parent: PySide2.QtCore.QModelIndex = Invalid(PySide2.QtCore.QModelIndex)) -> bool [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(self, row: int, parent: PySide2.QtCore.QModelIndex = Invalid(PySide2.QtCore.QModelIndex)) -> bool insertRow(self, row: int, parent: PySide2.QtCore.QModelIndex = Invalid(PySide2.QtCore.QModelIndex)) -> bool [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__]
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__]
layoutAboutToBeChanged
layoutChanged
LayoutChangeHint
match(self, start: PySide2.QtCore.QModelIndex, role: int, value: typing.Any, hits: int = 1, flags: PySide2.QtCore.Qt.MatchFlags = Instance(Qt.MatchFlags(Qt.MatchStartsWith|Qt.MatchWrap))) -> typing.List[int] match(self, start: PySide2.QtCore.QModelIndex, role: int, value: typing.Any, hits: int = 1, flags: PySide2.QtCore.Qt.MatchFlags = Instance(Qt.MatchFlags(Qt.MatchStartsWith|Qt.MatchWrap))) -> typing.List[int] [extrait de match.__doc__]
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
moveColumn(self, sourceParent: PySide2.QtCore.QModelIndex, sourceColumn: int, destinationParent: PySide2.QtCore.QModelIndex, destinationChild: int) -> bool moveColumn(self, sourceParent: PySide2.QtCore.QModelIndex, sourceColumn: int, destinationParent: PySide2.QtCore.QModelIndex, destinationChild: int) -> bool [extrait de moveColumn.__doc__]
moveColumns(self, sourceParent: PySide2.QtCore.QModelIndex, sourceColumn: int, count: int, destinationParent: PySide2.QtCore.QModelIndex, destinationChild: int) -> bool moveColumns(self, sourceParent: PySide2.QtCore.QModelIndex, sourceColumn: int, count: int, destinationParent: PySide2.QtCore.QModelIndex, destinationChild: int) -> bool [extrait de moveColumns.__doc__]
moveRow(self, sourceParent: PySide2.QtCore.QModelIndex, sourceRow: int, destinationParent: PySide2.QtCore.QModelIndex, destinationChild: int) -> bool moveRow(self, sourceParent: PySide2.QtCore.QModelIndex, sourceRow: int, destinationParent: PySide2.QtCore.QModelIndex, destinationChild: int) -> bool [extrait de moveRow.__doc__]
moveRows(self, sourceParent: PySide2.QtCore.QModelIndex, sourceRow: int, count: int, destinationParent: PySide2.QtCore.QModelIndex, destinationChild: int) -> bool moveRows(self, sourceParent: PySide2.QtCore.QModelIndex, sourceRow: int, count: int, destinationParent: PySide2.QtCore.QModelIndex, destinationChild: int) -> bool [extrait de moveRows.__doc__]
objectNameChanged
parent parent(self) -> PySide2.QtCore.QObject [extrait de parent.__doc__]
persistentIndexList(self) -> typing.List[int] persistentIndexList(self) -> typing.List[int] [extrait de persistentIndexList.__doc__]
removeColumn(self, column: int, parent: PySide2.QtCore.QModelIndex = Invalid(PySide2.QtCore.QModelIndex)) -> bool removeColumn(self, column: int, parent: PySide2.QtCore.QModelIndex = Invalid(PySide2.QtCore.QModelIndex)) -> bool [extrait de removeColumn.__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__]
removeRow(self, row: int, parent: PySide2.QtCore.QModelIndex = Invalid(PySide2.QtCore.QModelIndex)) -> bool removeRow(self, row: int, parent: PySide2.QtCore.QModelIndex = Invalid(PySide2.QtCore.QModelIndex)) -> bool [extrait de removeRow.__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__]
resetInternalData(self) resetInternalData(self) [extrait de resetInternalData.__doc__]
revert(self) revert(self) [extrait de revert.__doc__]
roleNames(self) -> typing.Dict[int, PySide2.QtCore.QByteArray] roleNames(self) -> typing.Dict[int, PySide2.QtCore.QByteArray] [extrait de roleNames.__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
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__]
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__]
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__]
span(self, index: PySide2.QtCore.QModelIndex) -> PySide2.QtCore.QSize span(self, index: PySide2.QtCore.QModelIndex) -> PySide2.QtCore.QSize [extrait de span.__doc__]
submit(self) -> bool submit(self) -> bool [extrait de submit.__doc__]
supportedDragActions(self) -> PySide2.QtCore.Qt.DropActions supportedDragActions(self) -> PySide2.QtCore.Qt.DropActions [extrait de supportedDragActions.__doc__]
supportedDropActions(self) -> PySide2.QtCore.Qt.DropActions supportedDropActions(self) -> PySide2.QtCore.Qt.DropActions [extrait de supportedDropActions.__doc__]

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__