Home · All Classes · Modules

QAbstractItemModel Class Reference
[QtCore module]

Inherits QObject.

Inherited by QAbstractListModel, QAbstractProxyModel, QAbstractTableModel, QDirModel, QFileSystemModel, QHelpContentModel, QProxyModel and QStandardItemModel.

Methods

Qt Signals


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)

QModelIndex QAbstractItemModel.buddy (self, QModelIndex)

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)

bool QAbstractItemModel.dropMimeData (self, QMimeData, Qt.DropAction, int, int, QModelIndex)

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)

Qt.ItemFlags QAbstractItemModel.flags (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)

QModelIndex QAbstractItemModel.parent (self, QModelIndex)

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.


PyQt 4.8 for X11Copyright © Riverbank Computing Ltd and Nokia 2010Qt 4.7.0