QStandardItemModel

Undocumented in source but is binding to C++. You might be able to learn more by searching the web for its name.
extern (C++)
class QStandardItemModel : QAbstractItemModel {}

Constructors

this
this(QObject parent)
Undocumented in source.
this
this(int rows, int columns, QObject parent)
Undocumented in source.
this
this(QStandardItemModelPrivate dd, QObject parent)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

appendColumn
void appendColumn(const(QList!(QStandardItem)) items)
Undocumented in source.
appendRow
void appendRow(const(QList!(QStandardItem)) items)
Undocumented in source.
clear
void clear()
Undocumented in source.
clearItemData
bool clearItemData(const(QModelIndex) index)
Undocumented in source.
columnCount
int columnCount(const(QModelIndex) parent)
Undocumented in source.
data
QVariant data(const(QModelIndex) index, int role)
Undocumented in source.
dropMimeData
bool dropMimeData(const(QMimeData) data, qt.core.namespace.DropAction action, int row, int column, const(QModelIndex) parent)
Undocumented in source.
findItems
QList!(QStandardItem) findItems(const(QString) text, qt.core.namespace.MatchFlags flags, int column)
Undocumented in source.
flags
qt.core.namespace.ItemFlags flags(const(QModelIndex) index)
Undocumented in source.
hasChildren
bool hasChildren(const(QModelIndex) parent)
Undocumented in source.
headerData
QVariant headerData(int section, qt.core.namespace.Orientation orientation, int role)
Undocumented in source.
horizontalHeaderItem
QStandardItem horizontalHeaderItem(int column)
Undocumented in source.
index
QModelIndex index(int row, int column, const(QModelIndex) parent)
Undocumented in source.
indexFromItem
QModelIndex indexFromItem(const(QStandardItem) item)
Undocumented in source.
insertColumn
void insertColumn(int column, const(QList!(QStandardItem)) items)
Undocumented in source.
insertColumns
bool insertColumns(int column, int count, const(QModelIndex) parent)
Undocumented in source.
insertRow
void insertRow(int row, const(QList!(QStandardItem)) items)
Undocumented in source.
insertRows
bool insertRows(int row, int count, const(QModelIndex) parent)
Undocumented in source.
invisibleRootItem
QStandardItem invisibleRootItem()
Undocumented in source.
item
QStandardItem item(int row, int column)
Undocumented in source.
itemChanged
void itemChanged(QStandardItem item)
Undocumented in source.
itemData
QMap!(int, QVariant) itemData(const(QModelIndex) index)
Undocumented in source.
itemFromIndex
QStandardItem itemFromIndex(const(QModelIndex) index)
Undocumented in source.
itemPrototype
const(QStandardItem) itemPrototype()
Undocumented in source.
mimeData
QMimeData mimeData(const(QModelIndexList) indexes)
Undocumented in source.
mimeTypes
QStringList mimeTypes()
Undocumented in source.
parent
QModelIndex parent(const(QModelIndex) child)
Undocumented in source.
removeColumns
bool removeColumns(int column, int count, const(QModelIndex) parent)
Undocumented in source.
removeRows
bool removeRows(int row, int count, const(QModelIndex) parent)
Undocumented in source.
rowCount
int rowCount(const(QModelIndex) parent)
Undocumented in source.
setColumnCount
void setColumnCount(int columns)
Undocumented in source.
setData
bool setData(const(QModelIndex) index, const(QVariant) value, int role)
Undocumented in source.
setHeaderData
bool setHeaderData(int section, qt.core.namespace.Orientation orientation, const(QVariant) value, int role)
Undocumented in source.
setHorizontalHeaderItem
void setHorizontalHeaderItem(int column, QStandardItem item)
Undocumented in source.
setHorizontalHeaderLabels
void setHorizontalHeaderLabels(const(QStringList) labels)
Undocumented in source.
setItem
void setItem(int row, int column, QStandardItem item)
Undocumented in source.
setItem
void setItem(int arow, QStandardItem aitem)
Undocumented in source. Be warned that the author may not have intended to support it.
setItemData
bool setItemData(const(QModelIndex) index, const(QMap!(int, QVariant)) roles)
Undocumented in source.
setItemPrototype
void setItemPrototype(const(QStandardItem) item)
Undocumented in source.
setItemRoleNames
void setItemRoleNames(const(QHash!(int, QByteArray)) roleNames)
Undocumented in source.
setRowCount
void setRowCount(int rows)
Undocumented in source.
setSortRole
void setSortRole(int role)
Undocumented in source.
setVerticalHeaderItem
void setVerticalHeaderItem(int row, QStandardItem item)
Undocumented in source.
setVerticalHeaderLabels
void setVerticalHeaderLabels(const(QStringList) labels)
Undocumented in source.
sibling
QModelIndex sibling(int row, int column, const(QModelIndex) idx)
Undocumented in source.
sort
void sort(int column, qt.core.namespace.SortOrder order)
Undocumented in source.
sortRole
int sortRole()
Undocumented in source.
supportedDropActions
qt.core.namespace.DropActions supportedDropActions()
Undocumented in source.
takeColumn
QList!(QStandardItem) takeColumn(int column)
Undocumented in source.
takeHorizontalHeaderItem
QStandardItem takeHorizontalHeaderItem(int column)
Undocumented in source.
takeItem
QStandardItem takeItem(int row, int column)
Undocumented in source.
takeRow
QList!(QStandardItem) takeRow(int row)
Undocumented in source.
takeVerticalHeaderItem
QStandardItem takeVerticalHeaderItem(int row)
Undocumented in source.
verticalHeaderItem
QStandardItem verticalHeaderItem(int row)
Undocumented in source.

Inherited Members

From QAbstractItemModel

~this
~this()
Undocumented in source.
hasIndex
bool hasIndex(int row, int column, const(QModelIndex) parent)
Undocumented in source.
index
QModelIndex index(int row, int column, const(QModelIndex) parent)
Undocumented in source.
parent
QModelIndex parent(const(QModelIndex) child)
Undocumented in source.
sibling
QModelIndex sibling(int row, int column, const(QModelIndex) idx)
Undocumented in source.
rowCount
int rowCount(const(QModelIndex) parent)
Undocumented in source.
columnCount
int columnCount(const(QModelIndex) parent)
Undocumented in source.
hasChildren
bool hasChildren(const(QModelIndex) parent)
Undocumented in source.
data
QVariant data(const(QModelIndex) index, int role)
Undocumented in source.
setData
bool setData(const(QModelIndex) index, const(QVariant) value, int role)
Undocumented in source.
headerData
QVariant headerData(int section, qt.core.namespace.Orientation orientation, int role)
Undocumented in source.
setHeaderData
bool setHeaderData(int section, qt.core.namespace.Orientation orientation, const(QVariant) value, int role)
Undocumented in source.
mimeTypes
QStringList mimeTypes()
Undocumented in source.
mimeData
QMimeData mimeData(const(QModelIndexList) indexes)
Undocumented in source.
supportedDropActions
qt.core.namespace.DropActions supportedDropActions()
Undocumented in source.
supportedDragActions
qt.core.namespace.DropActions supportedDragActions()
Undocumented in source.
insertRows
bool insertRows(int row, int count, const(QModelIndex) parent)
Undocumented in source.
insertColumns
bool insertColumns(int column, int count, const(QModelIndex) parent)
Undocumented in source.
removeRows
bool removeRows(int row, int count, const(QModelIndex) parent)
Undocumented in source.
removeColumns
bool removeColumns(int column, int count, const(QModelIndex) parent)
Undocumented in source.
moveRows
bool moveRows(const(QModelIndex) sourceParent, int sourceRow, int count, const(QModelIndex) destinationParent, int destinationChild)
Undocumented in source.
moveColumns
bool moveColumns(const(QModelIndex) sourceParent, int sourceColumn, int count, const(QModelIndex) destinationParent, int destinationChild)
Undocumented in source.
insertRow
bool insertRow(int arow, const(QModelIndex) aparent)
Undocumented in source. Be warned that the author may not have intended to support it.
insertColumn
bool insertColumn(int acolumn, const(QModelIndex) aparent)
Undocumented in source. Be warned that the author may not have intended to support it.
removeRow
bool removeRow(int arow, const(QModelIndex) aparent)
Undocumented in source. Be warned that the author may not have intended to support it.
removeColumn
bool removeColumn(int acolumn, const(QModelIndex) aparent)
Undocumented in source. Be warned that the author may not have intended to support it.
moveRow
bool moveRow(const(QModelIndex) sourceParent, int sourceRow, const(QModelIndex) destinationParent, int destinationChild)
Undocumented in source. Be warned that the author may not have intended to support it.
moveColumn
bool moveColumn(const(QModelIndex) sourceParent, int sourceColumn, const(QModelIndex) destinationParent, int destinationChild)
Undocumented in source. Be warned that the author may not have intended to support it.
fetchMore
void fetchMore(const(QModelIndex) parent)
Undocumented in source.
canFetchMore
bool canFetchMore(const(QModelIndex) parent)
Undocumented in source.
flags
qt.core.namespace.ItemFlags flags(const(QModelIndex) index)
Undocumented in source.
sort
void sort(int column, qt.core.namespace.SortOrder order)
Undocumented in source.
buddy
QModelIndex buddy(const(QModelIndex) index)
Undocumented in source.
match
QModelIndexList match(const(QModelIndex) start, int role, const(QVariant) value, int hits, qt.core.namespace.MatchFlags flags)
Undocumented in source.
span
QSize span(const(QModelIndex) index)
Undocumented in source.
LayoutChangeHint
enum LayoutChangeHint
Undocumented in source.
CheckIndexOption
enum CheckIndexOption
Undocumented in source.
CheckIndexOptions
alias CheckIndexOptions = QFlags!(CheckIndexOption)
Undocumented in source.
checkIndex
bool checkIndex(const(QModelIndex) index, CheckIndexOptions options)
Undocumented in source.
dataChanged
void dataChanged(const(QModelIndex) topLeft, const(QModelIndex) bottomRight, const(QVector!(int)) roles)
Undocumented in source.
headerDataChanged
void headerDataChanged(qt.core.namespace.Orientation orientation, int first, int last)
Undocumented in source.
layoutChanged
void layoutChanged(const(QList!(QPersistentModelIndex)) parents, QAbstractItemModel.LayoutChangeHint hint)
Undocumented in source.
layoutAboutToBeChanged
void layoutAboutToBeChanged(const(QList!(QPersistentModelIndex)) parents, QAbstractItemModel.LayoutChangeHint hint)
Undocumented in source.
rowsAboutToBeInserted
void rowsAboutToBeInserted(const(QModelIndex) parent, int first, int last, QPrivateSignal )
Undocumented in source.
rowsInserted
void rowsInserted(const(QModelIndex) parent, int first, int last, QPrivateSignal )
Undocumented in source.
rowsAboutToBeRemoved
void rowsAboutToBeRemoved(const(QModelIndex) parent, int first, int last, QPrivateSignal )
Undocumented in source.
rowsRemoved
void rowsRemoved(const(QModelIndex) parent, int first, int last, QPrivateSignal )
Undocumented in source.
columnsAboutToBeInserted
void columnsAboutToBeInserted(const(QModelIndex) parent, int first, int last, QPrivateSignal )
Undocumented in source.
columnsInserted
void columnsInserted(const(QModelIndex) parent, int first, int last, QPrivateSignal )
Undocumented in source.
columnsAboutToBeRemoved
void columnsAboutToBeRemoved(const(QModelIndex) parent, int first, int last, QPrivateSignal )
Undocumented in source.
columnsRemoved
void columnsRemoved(const(QModelIndex) parent, int first, int last, QPrivateSignal )
Undocumented in source.
modelAboutToBeReset
void modelAboutToBeReset(QPrivateSignal )
Undocumented in source.
modelReset
void modelReset(QPrivateSignal )
Undocumented in source.
rowsAboutToBeMoved
void rowsAboutToBeMoved(const(QModelIndex) sourceParent, int sourceStart, int sourceEnd, const(QModelIndex) destinationParent, int destinationRow, QPrivateSignal )
Undocumented in source.
rowsMoved
void rowsMoved(const(QModelIndex) parent, int start, int end, const(QModelIndex) destination, int row, QPrivateSignal )
Undocumented in source.
columnsAboutToBeMoved
void columnsAboutToBeMoved(const(QModelIndex) sourceParent, int sourceStart, int sourceEnd, const(QModelIndex) destinationParent, int destinationColumn, QPrivateSignal )
Undocumented in source.
columnsMoved
void columnsMoved(const(QModelIndex) parent, int start, int end, const(QModelIndex) destination, int column, QPrivateSignal )
Undocumented in source.
submit
bool submit()
Undocumented in source.
revert
void revert()
Undocumented in source.
resetInternalData
void resetInternalData()
Undocumented in source.
createIndex
QModelIndex createIndex(int arow, int acolumn, void* adata)
Undocumented in source. Be warned that the author may not have intended to support it.
createIndex
QModelIndex createIndex(int arow, int acolumn, quintptr aid)
Undocumented in source. Be warned that the author may not have intended to support it.
encodeData
void encodeData(const(QModelIndexList) indexes, QDataStream stream)
Undocumented in source.
decodeData
bool decodeData(int row, int column, const(QModelIndex) parent, QDataStream stream)
Undocumented in source.
beginInsertRows
void beginInsertRows(const(QModelIndex) parent, int first, int last)
Undocumented in source.
endInsertRows
void endInsertRows()
Undocumented in source.
beginRemoveRows
void beginRemoveRows(const(QModelIndex) parent, int first, int last)
Undocumented in source.
endRemoveRows
void endRemoveRows()
Undocumented in source.
beginMoveRows
bool beginMoveRows(const(QModelIndex) sourceParent, int sourceFirst, int sourceLast, const(QModelIndex) destinationParent, int destinationRow)
Undocumented in source.
endMoveRows
void endMoveRows()
Undocumented in source.
beginInsertColumns
void beginInsertColumns(const(QModelIndex) parent, int first, int last)
Undocumented in source.
endInsertColumns
void endInsertColumns()
Undocumented in source.
beginRemoveColumns
void beginRemoveColumns(const(QModelIndex) parent, int first, int last)
Undocumented in source.
endRemoveColumns
void endRemoveColumns()
Undocumented in source.
beginMoveColumns
bool beginMoveColumns(const(QModelIndex) sourceParent, int sourceFirst, int sourceLast, const(QModelIndex) destinationParent, int destinationColumn)
Undocumented in source.
endMoveColumns
void endMoveColumns()
Undocumented in source.
beginResetModel
void beginResetModel()
Undocumented in source.
endResetModel
void endResetModel()
Undocumented in source.
changePersistentIndex
void changePersistentIndex(const(QModelIndex) from, const(QModelIndex) to)
Undocumented in source.
changePersistentIndexList
void changePersistentIndexList(const(QModelIndexList) from, const(QModelIndexList) to)
Undocumented in source.
persistentIndexList
QModelIndexList persistentIndexList()
Undocumented in source.

Meta