![]() |
Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
Public Member Functions | |
QtModelIndex () | |
int | column () |
native Object | data (int role) |
native long | internalId () |
native boolean | isValid () |
native QtModelIndex | parent () |
int | row () |
Represents an index in a custom item model, similar to QModelindex
in c++.
Definition at line 11 of file QtModelIndex.java.
|
inline |
Constructs a new QtModelIndex.
Definition at line 16 of file QtModelIndex.java.
|
inline |
Returns the column of this index.
Definition at line 22 of file QtModelIndex.java.
native Object org.qtproject.qt.android.QtModelIndex.data | ( | int | role | ) |
Retrieves data for this index based on the specified role.
role | The role for which data is requested. |
native long org.qtproject.qt.android.QtModelIndex.internalId | ( | ) |
Returns the internal ID associated with this index.
native boolean org.qtproject.qt.android.QtModelIndex.isValid | ( | ) |
Checks if this index is valid.
Referenced by org.qtproject.qt.android.QtAbstractListModel.columnCount(), and org.qtproject.qt.android.QtAbstractListModel.hasChildren().
native QtModelIndex org.qtproject.qt.android.QtModelIndex.parent | ( | ) |
Returns the parent index of this index.
|
inline |