Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
doc_src_model-view-programming.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
7
8
12
13
19
20
24
25
30
31
35
36
virtual Q_INVOKABLE QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const =0
Returns the data stored under the given role for the item referred to by the index.
virtual Q_INVOKABLE QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const =0
Returns the index of the item in the model specified by the given row, column and parent index.
\inmodule QtCore
\inmodule QtCore
Definition qvariant.h:64
QAbstractItemModel * model
[0]
QModelIndex indexC
QModelIndex indexB
[4]
QModelIndex indexA
[1]
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
GLuint index
[2]
GLenum GLenum GLsizei void GLsizei void * column
GLenum GLenum GLsizei void * row
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent