![]() |
Qt 6.x
The Qt SDK
|
\inmodule QtCore More...
#include <qabstractitemmodel.h>
Public Member Functions | |
constexpr | QModelIndex () noexcept |
Creates a new empty model index. | |
constexpr int | row () const noexcept |
Returns the row this model index refers to. | |
constexpr int | column () const noexcept |
Returns the column this model index refers to. | |
constexpr quintptr | internalId () const noexcept |
Returns a {quintptr} used by the model to associate the index with the internal data structure. | |
void * | internalPointer () const noexcept |
Returns a {void} {*} pointer used by the model to associate the index with the internal data structure. | |
const void * | constInternalPointer () const noexcept |
Returns a {const void} {*} pointer used by the model to associate the index with the internal data structure. | |
QModelIndex | parent () const |
Returns the parent of the model index, or QModelIndex() if it has no parent. | |
QModelIndex | sibling (int row, int column) const |
Returns the sibling at row and column. | |
QModelIndex | siblingAtColumn (int column) const |
Returns the sibling at column for the current row. | |
QModelIndex | siblingAtRow (int row) const |
Returns the sibling at row for the current column. | |
QVariant | data (int role=Qt::DisplayRole) const |
Returns the data for the given role for the item referred to by the index. | |
void | multiData (QModelRoleDataSpan roleDataSpan) const |
Qt::ItemFlags | flags () const |
constexpr const QAbstractItemModel * | model () const noexcept |
Returns a pointer to the model containing the item that this index refers to. | |
constexpr bool | isValid () const noexcept |
Returns {true} if this model index is valid; otherwise returns {false}. | |
constexpr bool | operator== (const QModelIndex &other) const noexcept |
Returns {true} if this model index refers to the same location as the other model index; otherwise returns {false}. | |
constexpr bool | operator!= (const QModelIndex &other) const noexcept |
Returns {true} if this model index does not refer to the same location as the other model index; otherwise returns {false}. | |
constexpr bool | operator< (const QModelIndex &other) const noexcept |
Friends | |
class | QAbstractItemModel |
Related Symbols | |
(Note that these are not member symbols.) | |
QModelIndexList | |
Synonym for QList<QModelIndex>. | |
\inmodule QtCore
The QModelIndex class is used to locate data in a data model.
This class is used as an index into item models derived from QAbstractItemModel. The index is used by item views, delegates, and selection models to locate an item in the model.
New QModelIndex objects are created by the model using the QAbstractItemModel::createIndex() function. An invalid model index can be constructed with the QModelIndex constructor. Invalid indexes are often used as parent indexes when referring to top-level items in a model.
Model indexes refer to items in models, and contain all the information required to specify their locations in those models. Each index is located in a given row and column, and may have a parent index; use row(), column(), and parent() to obtain this information. Each top-level item in a model is represented by a model index that does not have a parent index - in this case, parent() will return an invalid model index, equivalent to an index constructed with the zero argument form of the QModelIndex() constructor.
To obtain a model index that refers to an existing item in a model, call QAbstractItemModel::index() with the required row and column values, and the model index of the parent. When referring to top-level items in a model, supply QModelIndex() as the parent index.
The model() function returns the model that the index references as a QAbstractItemModel. The child() function is used to examine items held under the index in the model. The sibling() function allows you to traverse items in the model on the same level as the index.
Definition at line 123 of file qabstractitemmodel.h.
|
inlineconstexprnoexcept |
Creates a new empty model index.
This type of model index is used to indicate that the position in the model is invalid.
Definition at line 127 of file qabstractitemmodel.h.
Referenced by parent(), sibling(), siblingAtColumn(), and siblingAtRow().
|
inlineconstexprnoexcept |
Returns the column this model index refers to.
Definition at line 130 of file qabstractitemmodel.h.
Referenced by QAbstractItemViewPrivate::_q_columnsAboutToBeRemoved(), QListWidgetPrivate::_q_dataChanged(), QTableWidgetPrivate::_q_dataChanged(), QTreeWidgetPrivate::_q_dataChanged(), QTableWidgetPrivate::_q_emitCurrentItemChanged(), QStandardItemModelPrivate::_q_emitItemChanged(), QItemSelectionModelPrivate::_q_rowsAboutToBeRemoved(), QConcatenateTablesProxyModelPrivate::_q_slotDataChanged(), QSortFilterProxyModelPrivate::_q_sourceDataChanged(), QAbstractItemModelPrivate::allowMove(), QSortFilterProxyModelPrivate::can_create_mapping(), QQuickTreeView::cellAtIndex(), QPersistentModelIndex::column(), QTreeViewPrivate::columnRanges(), QAbstractItemModelPrivate::columnsAboutToBeRemoved(), QAbstractItemModelPrivate::columnsInserted(), QAbstractItemModelPrivate::columnsRemoved(), QSortFilterProxyModelPrivate::create_mapping_recursive(), QHeaderView::currentChanged(), QTableWidget::currentColumn(), QTreeWidget::currentColumn(), QSqlQueryModel::data(), QAbstractItemModelTesterPrivate::dataChanged(), QIconModeViewBase::dataChanged(), QAbstractItemView::dataChanged(), QHeaderView::dataChanged(), QTreeView::dataChanged(), QQuickTreeViewPrivate::dataChangedCallback(), QAbstractItemModel::endMoveColumns(), QAbstractItemModel::endMoveRows(), QSortFilterProxyModelPrivate::filter_changed(), QAbstractProxyModel::headerData(), QTreeView::indexAt(), indexesFromRange(), QTreeModel::insertColumns(), QTreeModel::insertRows(), QAbstractItemViewPrivate::intersectedRect(), QTableViewPrivate::intersectedRect(), QTreeViewPrivate::intersectedRect(), QAbstractItemView::keyboardSearch(), QAbstractProxyModelPrivate::mapDropCoordinatesToSource(), QConcatenateTablesProxyModel::mapFromSource(), QIdentityProxyModel::mapFromSource(), QCompletionModel::mapFromSource(), QConcatenateTablesProxyModel::mapToSource(), QIdentityProxyModel::mapToSource(), mergeIndexes(), QTableView::moveCursor(), QTreeView::moveCursor(), operator<<(), QQmlModelIndexValueType::propertiesString(), QSortFilterProxyModelPrivate::proxy_to_source(), qContainsIndex(), QPdfBookmarkModel::rowCount(), rowLengthsFromRange(), QAbstractItemView::rowsAboutToBeRemoved(), QAbstractItemModelPrivate::rowsInserted(), QAbstractItemModelPrivate::rowsRemoved(), QItemSelection::select(), QFileSystemModel::setData(), QAbstractProxyModel::setHeaderData(), QTableView::setSelection(), QFileDialogComboBox::showPopup(), QAbstractItemModel::sibling(), QSortFilterProxyModelPrivate::source_to_proxy(), QSortFilterProxyModelPrivate::updateChildrenMapping(), QAbstractItemViewPrivate::updateEditorData(), MainWindow::updateSelection(), and QTreeView::visualRegionForSelection().
|
inlinenoexcept |
Returns a {const void}
{*} pointer used by the model to associate the index with the internal data structure.
Definition at line 133 of file qabstractitemmodel.h.
References i.
Referenced by QPersistentModelIndex::constInternalPointer().
|
inline |
Returns the data for the given role for the item referred to by the index.
Definition at line 492 of file qabstractitemmodel.h.
References QVariant::data().
Referenced by QFileDialogPrivate::_q_enterDirectory(), QFileDialogPrivate::_q_useNameFilter(), QConcatenateTablesProxyModel::data(), QPersistentModelIndex::data(), QFileSystemModel::fileIcon(), QAbstractItemModelTesterPrivate::rowsAboutToBeInserted(), QAbstractItemModelTesterPrivate::rowsInserted(), QSidebar::selectUrl(), QFileSystemModel::setData(), QFileDialogComboBox::setHistory(), and QFileDialogComboBox::showPopup().
|
inline |
Returns the flags for the item referred to by the index.
Definition at line 498 of file qabstractitemmodel.h.
Referenced by QAbstractItemView::currentChanged(), QComboBoxPrivateContainer::eventFilter(), QPersistentModelIndex::flags(), QTreeViewPrivate::isIndexExpanded(), and QComboBoxPrivate::trySetValidIndex().
|
inlineconstexprnoexcept |
Returns a {quintptr} used by the model to associate the index with the internal data structure.
Definition at line 131 of file qabstractitemmodel.h.
References i.
Referenced by QPersistentModelIndex::internalId(), QQmlModelIndexValueType::propertiesString(), and QTreeViewPrivate::viewIndex().
|
inlinenoexcept |
Returns a {void}
{*} pointer used by the model to associate the index with the internal data structure.
Definition at line 132 of file qabstractitemmodel.h.
References i.
Referenced by QAbstractItemModel::endMoveColumns(), QAbstractItemModel::endMoveRows(), QDeclarativeSupportedCategoriesModel::index(), QPdfBookmarkModel::index(), QSortFilterProxyModelPrivate::index_to_iterator(), QPersistentModelIndex::internalPointer(), QConcatenateTablesProxyModel::mapFromSource(), QIdentityProxyModel::mapFromSource(), QIdentityProxyModel::mapToSource(), operator<<(), QDeclarativeSupportedCategoriesModel::rowCount(), QPdfBookmarkModel::rowCount(), and QFileSystemModel::sibling().
|
inlineconstexprnoexcept |
Returns {true} if this model index is valid; otherwise returns
{false}.
A valid index belongs to a model, and has non-negative row and column numbers.
Definition at line 142 of file qabstractitemmodel.h.
Referenced by QAbstractItemViewPrivate::_q_columnsAboutToBeRemoved(), QListWidgetPrivate::_q_dataChanged(), QTableWidgetPrivate::_q_dataChanged(), QTreeWidgetPrivate::_q_dataChanged(), QItemSelectionModelPrivate::_q_rowsAboutToBeRemoved(), QConcatenateTablesProxyModelPrivate::_q_slotDataChanged(), QIdentityProxyModelPrivate::_q_sourceColumnsAboutToBeMoved(), QSortFilterProxyModelPrivate::_q_sourceColumnsInserted(), QIdentityProxyModelPrivate::_q_sourceColumnsMoved(), QSortFilterProxyModelPrivate::_q_sourceColumnsRemoved(), QSortFilterProxyModelPrivate::_q_sourceDataChanged(), QIdentityProxyModelPrivate::_q_sourceDataChanged(), QIdentityProxyModelPrivate::_q_sourceLayoutAboutToBeChanged(), QSortFilterProxyModelPrivate::_q_sourceLayoutAboutToBeChanged(), QIdentityProxyModelPrivate::_q_sourceLayoutChanged(), QSortFilterProxyModelPrivate::_q_sourceRowsAboutToBeInserted(), QIdentityProxyModelPrivate::_q_sourceRowsAboutToBeMoved(), QIdentityProxyModelPrivate::_q_sourceRowsMoved(), QSortFilterProxyModelPrivate::_q_sourceRowsRemoved(), QFileDialogPrivate::_q_updateOkButton(), QAbstractItemModelPrivate::allowMove(), QAbstractItemModel::beginMoveColumns(), QAbstractItemModel::beginMoveRows(), QSortFilterProxyModelPrivate::can_create_mapping(), QQuickTableViewPrivate::canEdit(), QAbstractItemModel::changePersistentIndex(), QAbstractItemModel::checkIndex(), QItemSelectionModel::clearCurrentIndex(), QQmlTreeModelToTableModel::collapse(), QConcatenateTablesProxyModel::columnCount(), QSortFilterProxyModel::columnCount(), QHeaderDataProxyModel::columnCount(), QAbstractItemModelPrivate::columnsAboutToBeRemoved(), QCompleter::complete(), QSortFilterProxyModelPrivate::create_mapping(), QSortFilterProxyModelPrivate::create_mapping_recursive(), QHeaderView::currentChanged(), QAbstractItemView::currentChanged(), QFontListView::currentChanged(), QListView::currentChanged(), QTableView::currentChanged(), QTreeView::currentChanged(), QAbstractItemModelTesterPrivate::data(), QConcatenateTablesProxyModel::data(), QSortFilterProxyModel::data(), QAbstractItemModelTesterPrivate::dataChanged(), QAbstractItemView::dataChanged(), QTreeView::drawRow(), QAbstractItemView::event(), QCompleter::eventFilter(), QComboBoxPrivateContainer::eventFilter(), QQmlTreeModelToTableModel::expand(), QFileSystemModelPrivate::filePath(), QConcatenateTablesProxyModel::flags(), QAbstractItemView::focusInEvent(), QTreeModel::hasChildren(), QSortFilterProxyModel::hasChildren(), QCompletionModel::hasChildren(), QHeaderDataProxyModel::hasChildren(), QCompletionModel::index(), QTreeModel::index(), QUndoModel::index(), QPdfBookmarkModel::index(), QSortFilterProxyModelPrivate::index_to_iterator(), QTreeView::indexAt(), QTreeView::indexRowSizeHint(), QAbstractItemView::inputMethodQuery(), QSortFilterProxyModelPrivate::insert_source_items(), QSortFilterProxyModel::insertColumns(), QSortFilterProxyModel::insertRows(), QQuickFolderListModel::isFolder(), QPersistentModelIndex::isValid(), QTableModel::itemChanged(), QConcatenateTablesProxyModel::itemData(), QAbstractItemView::keyboardSearch(), QTreeView::keyboardSearch(), QQmlTreeModelToTableModel::lastChildIndex(), QConcatenateTablesProxyModel::mapFromSource(), QIdentityProxyModel::mapFromSource(), QTransposeProxyModel::mapFromSource(), QCompletionModel::mapFromSource(), QAbstractProxyModel::mapSelectionFromSource(), QAbstractProxyModel::mapSelectionToSource(), QConcatenateTablesProxyModel::mapToSource(), QIdentityProxyModel::mapToSource(), QTransposeProxyModel::mapToSource(), QAbstractItemModel::match(), QIdentityProxyModel::moveColumns(), QListView::moveCursor(), QTableView::moveCursor(), QTreeView::moveCursor(), QIdentityProxyModel::moveRows(), QStringListModel::moveRows(), QListModel::moveRows(), QListView::paintEvent(), QAbstractItemModelTesterPrivate::parent(), QCompleter::pathFromIndex(), QQmlModelIndexValueType::propertiesString(), QSortFilterProxyModelPrivate::proxy_to_source(), QSortFilterProxyModelPrivate::recursiveParentAcceptsRow(), QSortFilterProxyModelPrivate::remove_source_items(), QSortFilterProxyModel::removeColumns(), QSortFilterProxyModel::removeRows(), QAbstractItemModelTesterPrivate::rowAndColumnCount(), QCompletionModel::rowCount(), QTreeModel::rowCount(), QConcatenateTablesProxyModel::rowCount(), QSortFilterProxyModel::rowCount(), QUndoModel::rowCount(), QHeaderDataProxyModel::rowCount(), QPdfBookmarkModel::rowCount(), QAbstractItemModelPrivate::rowsAboutToBeRemoved(), QAbstractItemModelTesterPrivate::rowsAboutToBeRemoved(), QAbstractItemView::rowsAboutToBeRemoved(), QTreeViewPrivate::select(), QItemSelection::select(), QListViewPrivate::selectAll(), QListViewPrivate::selection(), QListView::selectionChanged(), QTableView::selectionChanged(), QTreeView::selectionChanged(), QConcatenateTablesProxyModel::setData(), QSortFilterProxyModel::setData(), QFileSystemModel::setData(), QFileDialogComboBox::setHistory(), QConcatenateTablesProxyModel::setItemData(), QListView::setSelection(), QTableView::setSelection(), QTreeView::setSelection(), QQmlTreeModelToTableModel::showModelChildItems(), QComboBox::showPopup(), QFileDialogComboBox::showPopup(), QStringListModel::sibling(), QSortFilterProxyModelPrivate::source_to_proxy(), QConcatenateTablesProxyModel::span(), QSortFilterProxyModel::span(), QStandardItem::takeChild(), QQmlTreeModelToTableModel::testConsistency(), QAbstractItemView::timerEvent(), QCalendarWidget::updateCell(), QAbstractItemViewPrivate::updateEditorData(), QTreeViewPrivate::viewIndex(), and QTreeView::visualRegionForSelection().
|
inlineconstexprnoexcept |
Returns a pointer to the model containing the item that this index refers to.
A const pointer to the model is returned because calls to non-const functions of the model might invalidate the model index and possibly crash your application.
Definition at line 141 of file qabstractitemmodel.h.
Referenced by QFileDialogPrivate::_q_enterDirectory(), QIdentityProxyModelPrivate::_q_sourceColumnsAboutToBeMoved(), QIdentityProxyModelPrivate::_q_sourceColumnsMoved(), QIdentityProxyModelPrivate::_q_sourceDataChanged(), QIdentityProxyModelPrivate::_q_sourceRowsAboutToBeMoved(), QIdentityProxyModelPrivate::_q_sourceRowsMoved(), QQmlTreeModelToTableModel::collapse(), QQmlTreeModelToTableModel::expand(), QConcatenateTablesProxyModel::flags(), QSortFilterProxyModelPrivate::index_to_iterator(), QConcatenateTablesProxyModel::itemData(), QSortFilterProxyModel::lessThan(), QConcatenateTablesProxyModel::mapFromSource(), QIdentityProxyModel::mapFromSource(), QConcatenateTablesProxyModel::mapToSource(), QIdentityProxyModel::mapToSource(), QConcatenateTablesProxyModel::mimeData(), QPersistentModelIndex::model(), QIdentityProxyModel::moveColumns(), QIdentityProxyModel::moveRows(), operator<<(), QQmlModelIndexValueType::propertiesString(), QSortFilterProxyModelPrivate::proxy_to_source(), QItemSelection::select(), QConcatenateTablesProxyModel::setData(), QConcatenateTablesProxyModel::setItemData(), QSortFilterProxyModelPrivate::source_to_proxy(), and QConcatenateTablesProxyModel::span().
|
inline |
Populates the given roleDataSpan for the item referred to by the index.
Definition at line 495 of file qabstractitemmodel.h.
Referenced by QPersistentModelIndex::multiData().
|
inlineconstexprnoexcept |
Returns {true} if this model index does not refer to the same location as the other model index; otherwise returns
{false}.
Definition at line 145 of file qabstractitemmodel.h.
References other().
|
inlineconstexprnoexcept |
Returns {true} if this model index is smaller than the other model index; otherwise returns
{false}.
The less than calculation is not directly useful to developers - the way that indexes with different parents compare is not defined. This operator only exists so that the class can be used with QMap.
Definition at line 147 of file qabstractitemmodel.h.
|
inlineconstexprnoexcept |
Returns {true} if this model index refers to the same location as the other model index; otherwise returns
{false}.
The internal data pointer, row, column, and model values are used when comparing with another model index.
Definition at line 143 of file qabstractitemmodel.h.
|
inline |
Returns the parent of the model index, or QModelIndex() if it has no parent.
Definition at line 480 of file qabstractitemmodel.h.
References QModelIndex(), and parent().
Referenced by QAbstractItemViewPrivate::_q_columnsAboutToBeRemoved(), QTreeWidgetPrivate::_q_dataChanged(), QComboBoxPrivate::_q_dataChanged(), QDataWidgetMapperPrivate::_q_dataChanged(), QStandardItemModelPrivate::_q_emitItemChanged(), QItemSelectionModelPrivate::_q_rowsAboutToBeRemoved(), QSortFilterProxyModelPrivate::_q_sourceDataChanged(), QSortFilterProxyModelPrivate::_q_sourceRowsAboutToBeInserted(), QSortFilterProxyModelPrivate::_q_sourceRowsRemoved(), QAbstractItemModelPrivate::allowMove(), QAbstractItemModel::beginMoveColumns(), QAbstractItemModel::beginMoveRows(), QSortFilterProxyModelPrivate::can_create_mapping(), QAbstractItemModel::checkIndex(), QAbstractItemModelPrivate::columnsAboutToBeRemoved(), QSortFilterProxyModelPrivate::create_mapping(), QSortFilterProxyModelPrivate::create_mapping_recursive(), QHeaderView::currentChanged(), QAbstractItemModelTesterPrivate::dataChanged(), QAbstractItemView::dataChanged(), QTreeView::drawBranches(), QTreeView::drawRow(), QFileSystemModelPrivate::filePath(), QAbstractItemViewPrivate::intersectedRect(), QTreeViewPrivate::intersectedRect(), QAbstractItemView::keyboardSearch(), QTreeView::keyboardSearch(), QQmlTreeModelToTableModel::lastChildIndex(), QAbstractProxyModelPrivate::mapDropCoordinatesToSource(), QQmlTreeModelToTableModel::mapFromModel(), QCompletionModel::mapFromSource(), QQmlTreeModelToTableModel::mapToModel(), mergeIndexes(), QTreeView::moveCursor(), parent(), QPersistentModelIndex::parent(), QItemSelectionRange::parent(), QQmlModelIndexValueType::parent(), QQmlPersistentModelIndexValueType::parent(), QQmlItemSelectionRangeValueType::parent(), QIdentityProxyModel::parent(), QCompleter::pathFromIndex(), QSortFilterProxyModelPrivate::recursiveParentAcceptsRow(), QAbstractItemModelPrivate::rowsAboutToBeRemoved(), QAbstractItemView::rowsAboutToBeRemoved(), QTreeViewPrivate::select(), QItemSelection::select(), QTreeView::selectAll(), QTreeView::selectedIndexes(), QQmlTreeModelToTableModel::selectionForRowRange(), QFileDialogComboBox::showPopup(), QAbstractProxyModel::sibling(), QFileSystemModel::sibling(), QSortFilterProxyModelPrivate::source_to_proxy(), and QAbstractItemViewPrivate::updateEditorData().
|
inlineconstexprnoexcept |
Returns the row this model index refers to.
Definition at line 129 of file qabstractitemmodel.h.
Referenced by QItemSelectionModelPrivate::_q_columnsAboutToBeRemoved(), QAbstractItemViewPrivate::_q_columnsAboutToBeRemoved(), QCompleterPrivate::_q_complete(), QListWidgetPrivate::_q_dataChanged(), QTableWidgetPrivate::_q_dataChanged(), QTreeWidgetPrivate::_q_dataChanged(), QComboBoxPrivate::_q_dataChanged(), QListWidgetPrivate::_q_emitCurrentItemChanged(), QTableWidgetPrivate::_q_emitCurrentItemChanged(), QStandardItemModelPrivate::_q_emitItemChanged(), QItemSelectionModelPrivate::_q_rowsAboutToBeRemoved(), QSortFilterProxyModelPrivate::_q_sourceDataChanged(), QSortFilterProxyModelPrivate::_q_sourceRowsAboutToBeInserted(), QSortFilterProxyModelPrivate::_q_sourceRowsRemoved(), QAbstractItemModelPrivate::allowMove(), QAbstractItemModel::beginMoveColumns(), QAbstractItemModel::beginMoveRows(), QSortFilterProxyModelPrivate::can_create_mapping(), QQuickTreeView::cellAtIndex(), QAbstractItemModelPrivate::columnsInserted(), QAbstractItemModelPrivate::columnsRemoved(), QItemSelectionRange::contains(), QSortFilterProxyModelPrivate::create_mapping_recursive(), QHeaderView::currentChanged(), QAbstractItemView::currentChanged(), QFontListView::currentChanged(), QFontListView::currentItem(), QListWidget::currentRow(), QTableWidget::currentRow(), QFontListView::currentText(), QSqlQueryModel::data(), QAbstractItemModelTesterPrivate::dataChanged(), QIconModeViewBase::dataChanged(), QAbstractItemView::dataChanged(), QHeaderView::dataChanged(), QTreeView::dataChanged(), QQuickTreeViewPrivate::dataChangedCallback(), QTreeView::drawBranches(), QTreeView::drawRow(), QTreeModel::emitDataChanged(), QAbstractItemModel::endMoveColumns(), QAbstractItemModel::endMoveRows(), QCompleter::eventFilter(), QSortFilterProxyModelPrivate::filter_changed(), QListWidget::findItems(), QAbstractProxyModel::headerData(), QTreeView::indexAbove(), QTreeView::indexAt(), QTreeView::indexBelow(), indexesFromRange(), QAbstractItemViewPrivate::intersectedRect(), QTableViewPrivate::intersectedRect(), QTreeViewPrivate::intersectedRect(), QAbstractItemView::keyboardSearch(), QTreeView::keyboardSearch(), QQmlTreeModelToTableModel::lastChildIndex(), QInputDialogPrivate::listViewText(), QAbstractProxyModelPrivate::mapDropCoordinatesToSource(), QQmlTreeModelToTableModel::mapFromModel(), QConcatenateTablesProxyModel::mapFromSource(), QIdentityProxyModel::mapFromSource(), QCompletionModel::mapFromSource(), QQmlTreeModelToTableModel::mapToModel(), QConcatenateTablesProxyModel::mapToSource(), QIdentityProxyModel::mapToSource(), QAbstractItemModel::match(), mergeIndexes(), QConcatenateTablesProxyModel::mimeData(), QListModel::mimeData(), QListView::moveCursor(), QTableView::moveCursor(), QTreeView::moveCursor(), operator<<(), QSqlQueryModelPrivate::prefetch(), QQmlModelIndexValueType::propertiesString(), QSortFilterProxyModelPrivate::proxy_to_source(), qContainsIndex(), QSortFilterProxyModelPrivate::recursiveParentAcceptsRow(), QPersistentModelIndex::row(), rowLengthsFromRange(), QAbstractItemModelPrivate::rowsAboutToBeRemoved(), QAbstractItemView::rowsAboutToBeRemoved(), QAbstractItemModelPrivate::rowsInserted(), QAbstractItemModelPrivate::rowsRemoved(), QTreeViewPrivate::select(), QItemSelection::select(), QTreeView::selectAll(), QListWidget::selectedItems(), QListViewPrivate::selection(), QTableViewPrivate::selectRow(), QComboBoxPrivate::setCurrentIndex(), QAbstractProxyModel::setHeaderData(), QTableView::setSelection(), QFileDialogComboBox::showPopup(), QAbstractItemModel::sibling(), QFileSystemModel::sibling(), QStringListModel::sort(), QSortFilterProxyModelPrivate::source_to_proxy(), QQmlTreeModelToTableModel::testConsistency(), QSortFilterProxyModelPrivate::updateChildrenMapping(), QAbstractItemViewPrivate::updateEditorData(), MainWindow::updateSelection(), QListModeViewBase::verticalScrollToValue(), QTreeViewPrivate::viewIndex(), and QTreeView::visualRegionForSelection().
|
inline |
Returns the sibling at row and column.
If there is no sibling at this position, an invalid QModelIndex is returned.
Definition at line 483 of file qabstractitemmodel.h.
References QModelIndex().
Referenced by QCompleterPrivate::_q_complete(), QTreeView::indexAbove(), QTreeView::indexAt(), QTreeView::indexBelow(), indexesFromRange(), QAbstractItemView::keyboardSearch(), QTreeView::keyboardSearch(), QQmlTreeModelToTableModel::lastChildIndex(), QAbstractItemModel::match(), QTreeView::moveCursor(), rowLengthsFromRange(), QTreeViewPrivate::select(), QItemSelection::select(), QTreeView::selectAll(), QComboBoxPrivate::setCurrentIndex(), QTreeView::setSelection(), QPersistentModelIndex::sibling(), and QTreeViewPrivate::viewIndex().
|
inline |
Returns the sibling at column for the current row.
If there is no sibling at this position, an invalid QModelIndex is returned.
Definition at line 486 of file qabstractitemmodel.h.
References QModelIndex().
Referenced by QConcatenateTablesProxyModelPrivate::_q_slotDataChanged().
|
inline |
Returns the sibling at row for the current column.
If there is no sibling at this position, an invalid QModelIndex is returned.
Definition at line 489 of file qabstractitemmodel.h.
References QModelIndex().
|
friend |
Definition at line 125 of file qabstractitemmodel.h.
|
related |
Synonym for QList<QModelIndex>.
Definition at line 225 of file qabstractitemmodel.h.