QAbstractItemModel Class Reference
[QtCore module]
Inherits QObject.
Inherited by QAbstractListModel, QAbstractProxyModel, QAbstractTableModel, QDirModel, QFileSystemModel, QHelpContentModel, QProxyModel and QStandardItemModel.
Methods
- __init__ (self, QObject parent = None)
- beginInsertColumns (self, QModelIndex, int, int)
- beginInsertRows (self, QModelIndex, int, int)
- bool beginMoveColumns (self, QModelIndex, int, int, QModelIndex, int)
- bool beginMoveRows (self, QModelIndex, int, int, QModelIndex, int)
- beginRemoveColumns (self, QModelIndex, int, int)
- beginRemoveRows (self, QModelIndex, int, int)
- beginResetModel (self)
- QModelIndex buddy (self, QModelIndex)
- bool canFetchMore (self, QModelIndex)
- changePersistentIndex (self, QModelIndex, QModelIndex)
- changePersistentIndexList (self, list-of-QModelIndex, list-of-QModelIndex)
- int columnCount (self, QModelIndex parent = QModelIndex())
- QModelIndex createIndex (self, int, int, object object = 0)
- QVariant data (self, QModelIndex, int role = Qt.DisplayRole)
- bool decodeData (self, int, int, QModelIndex, QDataStream)
- bool dropMimeData (self, QMimeData, Qt.DropAction, int, int, QModelIndex)
- encodeData (self, list-of-QModelIndex, QDataStream)
- endInsertColumns (self)
- endInsertRows (self)
- endMoveColumns (self)
- endMoveRows (self)
- endRemoveColumns (self)
- endRemoveRows (self)
- endResetModel (self)
- fetchMore (self, QModelIndex)
- Qt.ItemFlags flags (self, QModelIndex)
- bool hasChildren (self, QModelIndex parent = QModelIndex())
- bool hasIndex (self, int, int, QModelIndex parent = QModelIndex())
- QVariant headerData (self, int, Qt.Orientation, int role = Qt.DisplayRole)
- QModelIndex index (self, int, int, QModelIndex parent = QModelIndex())
- bool insertColumn (self, int, QModelIndex parent = QModelIndex())
- bool insertColumns (self, int, int, QModelIndex parent = QModelIndex())
- bool insertRow (self, int, QModelIndex parent = QModelIndex())
- bool insertRows (self, int, int, QModelIndex parent = QModelIndex())
- dict-of-int-QVariant itemData (self, QModelIndex)
- list-of-QModelIndex match (self, QModelIndex, int, QVariant, int hits = 1, Qt.MatchFlags flags = Qt.MatchStartsWith|Qt.MatchWrap)
- QMimeData mimeData (self, list-of-QModelIndex)
- QStringList mimeTypes (self)
- QModelIndex parent (self, QModelIndex)
- QObject parent (self)
- list-of-QModelIndex persistentIndexList (self)
- bool removeColumn (self, int, QModelIndex parent = QModelIndex())
- bool removeColumns (self, int, int, QModelIndex parent = QModelIndex())
- bool removeRow (self, int, QModelIndex parent = QModelIndex())
- bool removeRows (self, int, int, QModelIndex parent = QModelIndex())
- reset (self)
- revert (self)
- dict-of-int-QByteArray roleNames (self)
- int rowCount (self, QModelIndex parent = QModelIndex())
- bool setData (self, QModelIndex, QVariant, int role = Qt.EditRole)
- bool setHeaderData (self, int, Qt.Orientation, QVariant, int role = Qt.EditRole)
- bool setItemData (self, QModelIndex, dict-of-int-QVariant)
- setRoleNames (self, dict-of-int-QByteArray)
- setSupportedDragActions (self, Qt.DropActions)
- QModelIndex sibling (self, int, int, QModelIndex)
- sort (self, int, Qt.SortOrder order = Qt.AscendingOrder)
- QSize span (self, QModelIndex)
- bool submit (self)
- Qt.DropActions supportedDragActions (self)
- Qt.DropActions supportedDropActions (self)
Qt Signals
- void columnsAboutToBeInserted (const QModelIndex&,int,int)
- void columnsAboutToBeMoved (const QModelIndex&,int,int,const QModelIndex&,int)
- void columnsAboutToBeRemoved (const QModelIndex&,int,int)
- void columnsInserted (const QModelIndex&,int,int)
- void columnsMoved (const QModelIndex&,int,int,const QModelIndex&,int)
- void columnsRemoved (const QModelIndex&,int,int)
- void dataChanged (const QModelIndex&,const QModelIndex&)
- void headerDataChanged (Qt::Orientation,int,int)
- void layoutAboutToBeChanged ()
- void layoutChanged ()
- void modelAboutToBeReset ()
- void modelReset ()
- void rowsAboutToBeInserted (const QModelIndex&,int,int)
- void rowsAboutToBeMoved (const QModelIndex&,int,int,const QModelIndex&,int)
- void rowsAboutToBeRemoved (const QModelIndex&,int,int)
- void rowsInserted (const QModelIndex&,int,int)
- void rowsMoved (const QModelIndex&,int,int,const QModelIndex&,int)
- void rowsRemoved (const QModelIndex&,int,int)
Detailed Description
Method Documentation
QAbstractItemModel.__init__ (self, QObject parent = None)
The parent argument, if not None, causes self to be owned by Qt instead of PyQt.
QAbstractItemModel.beginInsertColumns (self, QModelIndex, int, int)
QAbstractItemModel.beginInsertRows (self, QModelIndex, int, int)
bool QAbstractItemModel.beginMoveColumns (self, QModelIndex, int, int, QModelIndex, int)
bool QAbstractItemModel.beginMoveRows (self, QModelIndex, int, int, QModelIndex, int)
QAbstractItemModel.beginRemoveColumns (self, QModelIndex, int, int)
QAbstractItemModel.beginRemoveRows (self, QModelIndex, int, int)
QAbstractItemModel.beginResetModel (self)
bool QAbstractItemModel.canFetchMore (self, QModelIndex)
QAbstractItemModel.changePersistentIndex (self, QModelIndex, QModelIndex)
QAbstractItemModel.changePersistentIndexList (self, list-of-QModelIndex, list-of-QModelIndex)
int QAbstractItemModel.columnCount (self, QModelIndex parent = QModelIndex())
This method is abstract and should be reimplemented in any sub-class.
QModelIndex QAbstractItemModel.createIndex (self, int, int, object object = 0)
QVariant QAbstractItemModel.data (self, QModelIndex, int role = Qt.DisplayRole)
This method is abstract and should be reimplemented in any sub-class.
bool QAbstractItemModel.decodeData (self, int, int, QModelIndex, QDataStream)
QAbstractItemModel.encodeData (self, list-of-QModelIndex, QDataStream)
QAbstractItemModel.endInsertColumns (self)
QAbstractItemModel.endInsertRows (self)
QAbstractItemModel.endMoveColumns (self)
QAbstractItemModel.endMoveRows (self)
QAbstractItemModel.endRemoveColumns (self)
QAbstractItemModel.endRemoveRows (self)
QAbstractItemModel.endResetModel (self)
QAbstractItemModel.fetchMore (self, QModelIndex)
bool QAbstractItemModel.hasChildren (self, QModelIndex parent = QModelIndex())
bool QAbstractItemModel.hasIndex (self, int, int, QModelIndex parent = QModelIndex())
QVariant QAbstractItemModel.headerData (self, int, Qt.Orientation, int role = Qt.DisplayRole)
QModelIndex QAbstractItemModel.index (self, int, int, QModelIndex parent = QModelIndex())
This method is abstract and should be reimplemented in any sub-class.
bool QAbstractItemModel.insertColumn (self, int, QModelIndex parent = QModelIndex())
bool QAbstractItemModel.insertColumns (self, int, int, QModelIndex parent = QModelIndex())
bool QAbstractItemModel.insertRow (self, int, QModelIndex parent = QModelIndex())
bool QAbstractItemModel.insertRows (self, int, int, QModelIndex parent = QModelIndex())
dict-of-int-QVariant QAbstractItemModel.itemData (self, QModelIndex)
list-of-QModelIndex QAbstractItemModel.match (self, QModelIndex, int, QVariant, int hits = 1, Qt.MatchFlags flags = Qt.MatchStartsWith|Qt.MatchWrap)
QMimeData QAbstractItemModel.mimeData (self, list-of-QModelIndex)
The QMimeData result
QStringList QAbstractItemModel.mimeTypes (self)
This method is abstract and should be reimplemented in any sub-class.
QObject QAbstractItemModel.parent (self)
list-of-QModelIndex QAbstractItemModel.persistentIndexList (self)
bool QAbstractItemModel.removeColumn (self, int, QModelIndex parent = QModelIndex())
bool QAbstractItemModel.removeColumns (self, int, int, QModelIndex parent = QModelIndex())
bool QAbstractItemModel.removeRow (self, int, QModelIndex parent = QModelIndex())
bool QAbstractItemModel.removeRows (self, int, int, QModelIndex parent = QModelIndex())
QAbstractItemModel.reset (self)
QAbstractItemModel.revert (self)
This method is also a Qt slot with the C++ signature void revert().
dict-of-int-QByteArray QAbstractItemModel.roleNames (self)
int QAbstractItemModel.rowCount (self, QModelIndex parent = QModelIndex())
This method is abstract and should be reimplemented in any sub-class.
bool QAbstractItemModel.setData (self, QModelIndex, QVariant, int role = Qt.EditRole)
bool QAbstractItemModel.setHeaderData (self, int, Qt.Orientation, QVariant, int role = Qt.EditRole)
bool QAbstractItemModel.setItemData (self, QModelIndex, dict-of-int-QVariant)
QAbstractItemModel.setRoleNames (self, dict-of-int-QByteArray)
QAbstractItemModel.setSupportedDragActions (self, Qt.DropActions)
QModelIndex QAbstractItemModel.sibling (self, int, int, QModelIndex)
QAbstractItemModel.sort (self, int, Qt.SortOrder order = Qt.AscendingOrder)
QSize QAbstractItemModel.span (self, QModelIndex)
bool QAbstractItemModel.submit (self)
This method is also a Qt slot with the C++ signature bool submit().
Qt.DropActions QAbstractItemModel.supportedDragActions (self)
Qt.DropActions QAbstractItemModel.supportedDropActions (self)
Qt Signal Documentation
void columnsAboutToBeInserted (const QModelIndex&,int,int)
This is the default overload of this signal.
void columnsAboutToBeMoved (const QModelIndex&,int,int,const QModelIndex&,int)
This is the default overload of this signal.
void columnsAboutToBeRemoved (const QModelIndex&,int,int)
This is the default overload of this signal.
void columnsInserted (const QModelIndex&,int,int)
This is the default overload of this signal.
void columnsMoved (const QModelIndex&,int,int,const QModelIndex&,int)
This is the default overload of this signal.
void columnsRemoved (const QModelIndex&,int,int)
This is the default overload of this signal.
void dataChanged (const QModelIndex&,const QModelIndex&)
This is the default overload of this signal.
void headerDataChanged (Qt::Orientation,int,int)
This is the default overload of this signal.
void layoutAboutToBeChanged ()
This is the default overload of this signal.
void layoutChanged ()
This is the default overload of this signal.
void modelAboutToBeReset ()
This is the default overload of this signal.
void modelReset ()
This is the default overload of this signal.
void rowsAboutToBeInserted (const QModelIndex&,int,int)
This is the default overload of this signal.
void rowsAboutToBeMoved (const QModelIndex&,int,int,const QModelIndex&,int)
This is the default overload of this signal.
void rowsAboutToBeRemoved (const QModelIndex&,int,int)
This is the default overload of this signal.
void rowsInserted (const QModelIndex&,int,int)
This is the default overload of this signal.
void rowsMoved (const QModelIndex&,int,int,const QModelIndex&,int)
This is the default overload of this signal.
void rowsRemoved (const QModelIndex&,int,int)
This is the default overload of this signal.