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>.
Loading...
Searching...
No Matches
org.qtproject.qt.android.QtModelIndex Class Reference
+ Collaboration diagram for org.qtproject.qt.android.QtModelIndex:

Public Member Functions

 QtModelIndex ()
 
int column ()
 
native Object data (int role)
 
native long internalId ()
 
native boolean isValid ()
 
native QtModelIndex parent ()
 
int row ()
 

Detailed Description

Represents an index in a custom item model, similar to QModelindex in c++.

Definition at line 11 of file QtModelIndex.java.

Constructor & Destructor Documentation

◆ QtModelIndex()

org.qtproject.qt.android.QtModelIndex.QtModelIndex ( )
inline

Constructs a new QtModelIndex.

Definition at line 16 of file QtModelIndex.java.

Member Function Documentation

◆ column()

int org.qtproject.qt.android.QtModelIndex.column ( )
inline

Returns the column of this index.

Returns
The column.

Definition at line 22 of file QtModelIndex.java.

◆ data()

native Object org.qtproject.qt.android.QtModelIndex.data ( int role)

Retrieves data for this index based on the specified role.

Parameters
roleThe role for which data is requested.
Returns
The data object.

◆ internalId()

native long org.qtproject.qt.android.QtModelIndex.internalId ( )

Returns the internal ID associated with this index.

Returns
The internal ID.

◆ isValid()

native boolean org.qtproject.qt.android.QtModelIndex.isValid ( )

Checks if this index is valid.

Returns
True if the index is valid, false otherwise.

Referenced by org.qtproject.qt.android.QtAbstractListModel.columnCount(), and org.qtproject.qt.android.QtAbstractListModel.hasChildren().

+ Here is the caller graph for this function:

◆ parent()

native QtModelIndex org.qtproject.qt.android.QtModelIndex.parent ( )

Returns the parent index of this index.

Returns
The parent index.

◆ row()

int org.qtproject.qt.android.QtModelIndex.row ( )
inline

Returns the row of this index.

Returns
The row.

Definition at line 53 of file QtModelIndex.java.


The documentation for this class was generated from the following file: