QAbstractItemModel
#include <QtCore/QAbstractItemModel>
More information will be added here shortly. For now, you'll find more extensive information about this class in the Qt reference for QAbstractItemModel
Overview
Inheritance
QAbstractItemModel | |||||
QAbstractListModel | |||||
QAbstractTableModel | |||||
QSqlQueryModel |
Public Functions Index
QAbstractItemModel (QObject *parent=0) | |
virtual | ~QAbstractItemModel () |
virtual QModelIndex | buddy (const QModelIndex &index) const |
virtual bool | canFetchMore (const QModelIndex &parent) const |
int | columnCount (const QModelIndex &parent=QModelIndex()) const =0 |
QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const =0 |
virtual bool | dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) |
virtual void | fetchMore (const QModelIndex &parent) |
virtual Qt::ItemFlags | flags (const QModelIndex &index) const |
virtual bool | hasChildren (const QModelIndex &parent=QModelIndex()) const |
bool | hasIndex (int row, int column, const QModelIndex &parent=QModelIndex()) const |
virtual QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const =0 |
bool | insertColumn (int column, const QModelIndex &parent=QModelIndex()) |
virtual bool | insertColumns (int column, int count, const QModelIndex &parent=QModelIndex()) |
bool | insertRow (int row, const QModelIndex &parent=QModelIndex()) |
virtual bool | insertRows (int row, int count, const QModelIndex &parent=QModelIndex()) |
virtual QMap< int, QVariant > | itemData (const QModelIndex &index) const |
virtual QModelIndexList | match (const QModelIndex &start, int role, const QVariant &value, int hits=1, Qt::MatchFlags flags=Qt::MatchFlags(Qt::MatchStartsWith|Qt::MatchWrap)) const |
virtual QMimeData * | mimeData (const QModelIndexList &indexes) const |
virtual QStringList | mimeTypes () const |
QModelIndex | parent (const QModelIndex &child) const =0 |
bool | removeColumn (int column, const QModelIndex &parent=QModelIndex()) |
virtual bool | removeColumns (int column, int count, const QModelIndex &parent=QModelIndex()) |
bool | removeRow (int row, const QModelIndex &parent=QModelIndex()) |
virtual bool | removeRows (int row, int count, const QModelIndex &parent=QModelIndex()) |
const QHash< int, QByteArray > & | roleNames () const |
int | rowCount (const QModelIndex &parent=QModelIndex()) const =0 |
virtual bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) |
virtual bool | setHeaderData (int section, Qt::Orientation orientation, const QVariant &value, int role=Qt::EditRole) |
virtual bool | setItemData (const QModelIndex &index, const QMap< int, QVariant > &roles) |
void | setSupportedDragActions (Qt::DropActions) |
QModelIndex | sibling (int row, int column, const QModelIndex &idx) const |
virtual void | sort (int column, Qt::SortOrder order=Qt::AscendingOrder) |
virtual QSize | span (const QModelIndex &index) const |
Qt::DropActions | supportedDragActions () const |
virtual Qt::DropActions | supportedDropActions () const |
Protected Functions Index
QAbstractItemModel (QAbstractItemModelPrivate &dd, QObject *parent=0) | |
void | beginInsertColumns (const QModelIndex &parent, int first, int last) |
void | beginInsertRows (const QModelIndex &parent, int first, int last) |
bool | beginMoveColumns (const QModelIndex &sourceParent, int sourceFirst, int sourceLast, const QModelIndex &destinationParent, int destinationColumn) |
bool | beginMoveRows (const QModelIndex &sourceParent, int sourceFirst, int sourceLast, const QModelIndex &destinationParent, int destinationRow) |
void | beginRemoveColumns (const QModelIndex &parent, int first, int last) |
void | beginRemoveRows (const QModelIndex &parent, int first, int last) |
void | beginResetModel () |
void | changePersistentIndex (const QModelIndex &from, const QModelIndex &to) |
void | changePersistentIndexList (const QModelIndexList &from, const QModelIndexList &to) |
QModelIndex | createIndex (int row, int column, void *data=0) const |
QModelIndex | createIndex (int row, int column, int id) const |
QModelIndex | createIndex (int row, int column, quint32 id) const |
bool | decodeData (int row, int column, const QModelIndex &parent, QDataStream &stream) |
void | encodeData (const QModelIndexList &indexes, QDataStream &stream) const |
void | endInsertColumns () |
void | endInsertRows () |
void | endMoveColumns () |
void | endMoveRows () |
void | endRemoveColumns () |
void | endRemoveRows () |
void | endResetModel () |
QModelIndexList | persistentIndexList () const |
void | reset () |
void | setRoleNames (const QHash< int, QByteArray > &roleNames) |
Signals Index
void | dataChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight) |
void | headerDataChanged (Qt::Orientation orientation, int first, int last) |
void | layoutAboutToBeChanged () |
void | layoutChanged () |
Public Functions
virtual
Destructor.
virtualQModelIndex
virtual bool
int
virtual bool
virtual void
virtual Qt::ItemFlags
virtual bool
bool
virtualQVariant
bool
virtual bool
bool
virtual bool
virtualQModelIndexList
virtualQMimeData *
virtualQStringList
bool
virtual bool
bool
virtual bool
const QHash< int, QByteArray > &
int
virtual bool
virtual bool
virtual bool
void
virtual void
virtualQSize
Qt::DropActions
virtual Qt::DropActions
Protected Functions
void
void
bool
bool
void
void
void
void
void
bool
void
void
void
void
void
void
void
void
void
void
Public Slots
virtual void
virtual bool
Signals
void
void
void
void
© 2013 Digia Plc and/or its subsidiaries. Documentation contributions included herein are the copyrights of their respective owners.
The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.
Documentation sources may be obtained from www.qt-project.org.
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide. All other trademarks are property of their respective owners. Privacy Policy