QAbstractListModel

#include <QtCore/QAbstractListModel>

More information will be added here shortly. For now, you'll find more extensive information about this class in the Qt reference for QAbstractListModel


Overview

Inheritance

QAbstractItemModel
QAbstractListModel

Public Functions Index

QAbstractListModel (QObject *parent=0)
~QAbstractListModel ()
virtual booldropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent)
virtual QModelIndexindex (int row, int column=0, const QModelIndex &parent=QModelIndex()) const
virtual QModelIndexbuddy (const QModelIndex &index) const Inherited
virtual boolcanFetchMore (const QModelIndex &parent) const Inherited
QVariantdata (const QModelIndex &index, int role=Qt::DisplayRole) const =0Inherited
virtual voidfetchMore (const QModelIndex &parent)Inherited
virtual Qt::ItemFlagsflags (const QModelIndex &index) const Inherited
boolhasIndex (int row, int column, const QModelIndex &parent=QModelIndex()) const Inherited
virtual QVariantheaderData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const Inherited
boolinsertColumn (int column, const QModelIndex &parent=QModelIndex())Inherited
virtual boolinsertColumns (int column, int count, const QModelIndex &parent=QModelIndex())Inherited
boolinsertRow (int row, const QModelIndex &parent=QModelIndex())Inherited
virtual boolinsertRows (int row, int count, const QModelIndex &parent=QModelIndex())Inherited
virtual QMap< int, QVariant >itemData (const QModelIndex &index) const Inherited
virtual QModelIndexListmatch (const QModelIndex &start, int role, const QVariant &value, int hits=1, Qt::MatchFlags flags=Qt::MatchFlags(Qt::MatchStartsWith|Qt::MatchWrap)) const Inherited
virtual QMimeData *mimeData (const QModelIndexList &indexes) const Inherited
virtual QStringListmimeTypes () const Inherited
QAbstractItemModel (QObject *parent=0)Inherited
boolremoveColumn (int column, const QModelIndex &parent=QModelIndex())Inherited
virtual boolremoveColumns (int column, int count, const QModelIndex &parent=QModelIndex())Inherited
boolremoveRow (int row, const QModelIndex &parent=QModelIndex())Inherited
virtual boolremoveRows (int row, int count, const QModelIndex &parent=QModelIndex())Inherited
const QHash< int, QByteArray > &roleNames () const Inherited
introwCount (const QModelIndex &parent=QModelIndex()) const =0Inherited
virtual boolsetData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)Inherited
virtual boolsetHeaderData (int section, Qt::Orientation orientation, const QVariant &value, int role=Qt::EditRole)Inherited
virtual boolsetItemData (const QModelIndex &index, const QMap< int, QVariant > &roles)Inherited
voidsetSupportedDragActions (Qt::DropActions)Inherited
QModelIndexsibling (int row, int column, const QModelIndex &idx) const Inherited
virtual voidsort (int column, Qt::SortOrder order=Qt::AscendingOrder)Inherited
virtual QSizespan (const QModelIndex &index) const Inherited
Qt::DropActionssupportedDragActions () const Inherited
virtual Qt::DropActionssupportedDropActions () const Inherited

Protected Functions Index

QAbstractListModel (QAbstractItemModelPrivate &dd, QObject *parent)
voidbeginInsertColumns (const QModelIndex &parent, int first, int last)Inherited
voidbeginInsertRows (const QModelIndex &parent, int first, int last)Inherited
boolbeginMoveColumns (const QModelIndex &sourceParent, int sourceFirst, int sourceLast, const QModelIndex &destinationParent, int destinationColumn)Inherited
boolbeginMoveRows (const QModelIndex &sourceParent, int sourceFirst, int sourceLast, const QModelIndex &destinationParent, int destinationRow)Inherited
voidbeginRemoveColumns (const QModelIndex &parent, int first, int last)Inherited
voidbeginRemoveRows (const QModelIndex &parent, int first, int last)Inherited
voidbeginResetModel ()Inherited
voidchangePersistentIndex (const QModelIndex &from, const QModelIndex &to)Inherited
voidchangePersistentIndexList (const QModelIndexList &from, const QModelIndexList &to)Inherited
QModelIndexcreateIndex (int row, int column, void *data=0) const Inherited
QModelIndexcreateIndex (int row, int column, int id) const Inherited
QModelIndexcreateIndex (int row, int column, quint32 id) const Inherited
booldecodeData (int row, int column, const QModelIndex &parent, QDataStream &stream)Inherited
voidencodeData (const QModelIndexList &indexes, QDataStream &stream) const Inherited
voidendInsertColumns ()Inherited
voidendInsertRows ()Inherited
voidendMoveColumns ()Inherited
voidendMoveRows ()Inherited
voidendRemoveColumns ()Inherited
voidendRemoveRows ()Inherited
voidendResetModel ()Inherited
QModelIndexListpersistentIndexList () const Inherited
QAbstractItemModel (QAbstractItemModelPrivate &dd, QObject *parent=0)Inherited
voidreset ()Inherited
voidsetRoleNames (const QHash< int, QByteArray > &roleNames)Inherited

Public Slots Index

Only has inherited public slots

virtual voidrevert ()Inherited
virtual boolsubmit ()Inherited

Signals Index

Only has inherited signals

voiddataChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight)Inherited
voidheaderDataChanged (Qt::Orientation orientation, int first, int last)Inherited
voidlayoutAboutToBeChanged ()Inherited
voidlayoutChanged ()Inherited

Public Functions

QAbstractListModel (

~QAbstractListModel ()

Destructor.

virtual bool dropMimeData (

virtualQModelIndex index (

virtualQModelIndex buddy (Inherited

virtual bool canFetchMore (Inherited

QVariant data (Inherited

virtual void fetchMore (Inherited

virtual Qt::ItemFlags flags (Inherited

bool hasIndex (Inherited

virtualQVariant headerData (
  • intsection,
  • Qt::Orientationorientation,
  • introle )
Inherited

bool insertColumn (Inherited

virtual bool insertColumns (Inherited

bool insertRow (Inherited

virtual bool insertRows (Inherited

virtualQMap< int, QVariant > itemData (Inherited

virtualQModelIndexList match (Inherited

virtualQMimeData * mimeData (Inherited

virtualQStringList mimeTypes ()Inherited

QAbstractItemModel (Inherited

bool removeColumn (Inherited

virtual bool removeColumns (Inherited

bool removeRow (Inherited

virtual bool removeRows (Inherited

const QHash< int, QByteArray > & roleNames ()Inherited

int rowCount (Inherited

virtual bool setData (Inherited

virtual bool setHeaderData (
  • intsection,
  • Qt::Orientationorientation,
  • const QVariant &value,
  • introle )
Inherited

virtual bool setItemData (Inherited

void setSupportedDragActions (
  • Qt::DropActions)
Inherited

QModelIndex sibling (Inherited

virtual void sort (
  • intcolumn,
  • Qt::SortOrderorder )
Inherited

virtualQSize span (Inherited

Qt::DropActions supportedDragActions ()Inherited

virtual Qt::DropActions supportedDropActions ()Inherited

Protected Functions

QAbstractListModel (
  • QAbstractItemModelPrivate &dd,
  • QObject *parent )

void beginInsertColumns (Inherited

void beginInsertRows (Inherited

bool beginMoveColumns (
  • const QModelIndex &sourceParent,
  • intsourceFirst,
  • intsourceLast,
  • const QModelIndex &destinationParent,
  • intdestinationColumn )
Inherited

bool beginMoveRows (
  • const QModelIndex &sourceParent,
  • intsourceFirst,
  • intsourceLast,
  • const QModelIndex &destinationParent,
  • intdestinationRow )
Inherited

void beginRemoveColumns (Inherited

void beginRemoveRows (Inherited

void beginResetModel ()Inherited

void changePersistentIndex (Inherited

void changePersistentIndexList (Inherited

QModelIndex createIndex (
  • introw,
  • intcolumn,
  • void *data )
Inherited

QModelIndex createIndex (
  • introw,
  • intcolumn,
  • intid )
Inherited

QModelIndex createIndex (
  • introw,
  • intcolumn,
  • quint32id )
Inherited

bool decodeData (Inherited

void encodeData (Inherited

void endInsertColumns ()Inherited

void endInsertRows ()Inherited

void endMoveColumns ()Inherited

void endMoveRows ()Inherited

void endRemoveColumns ()Inherited

void endRemoveRows ()Inherited

void endResetModel ()Inherited

QModelIndexList persistentIndexList ()Inherited

QAbstractItemModel (
  • QAbstractItemModelPrivate &dd,
  • QObject *parent )
Inherited

void reset ()Inherited

void setRoleNames (Inherited

Public Slots

(Only has inherited public slots)

virtual void revert ()Inherited

virtual bool submit ()Inherited

Signals

(Only has inherited signals)

void dataChanged (Inherited

void headerDataChanged (
  • Qt::Orientationorientation,
  • intfirst,
  • intlast )
Inherited

void layoutAboutToBeChanged ()Inherited

void layoutChanged ()Inherited

Last modified: 2015-07-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus