java.lang.Object
io.qt.QtObject
io.qt.core.QModelIndex
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
,Comparable<QModelIndex>
Used to locate data in a data model
Java wrapper for Qt class QModelIndex
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates and returns a copy of this object.final int
column()
int
compareTo
(QModelIndex other) final Object
data()
Overloaded function fordata(int)
withrole = 0
.final Object
data
(int role) final boolean
equals
(QModelIndex other) boolean
final Qt.ItemFlags
flags()
int
hashCode()
Returns the objects's hash code computed byqHash(QModelIndex)
.final long
final boolean
isValid()
final QAbstractItemModel
model()
final void
final QModelIndex
parent()
final int
row()
final QModelIndex
sibling
(int row, int column) final QModelIndex
siblingAtColumn
(int column) final QModelIndex
siblingAtRow
(int row) toString()
Seeoperator<<(QDebug,
QModelIndex) Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QModelIndex
public QModelIndex() -
QModelIndex
-
-
Method Details
-
column
-
data
-
flags
-
internalId
-
isValid
-
model
-
multiData
See
QModelIndex::
multiData(QModelRoleDataSpan)const This function was introduced in Qt 6.0.
-
equals
-
parent
-
row
-
sibling
-
siblingAtColumn
-
siblingAtRow
-
equals
-
compareTo
- Specified by:
compareTo
in interfaceComparable<QModelIndex>
-
hashCode
Returns the objects's hash code computed byqHash(QModelIndex)
. -
toString
See
operator<<(QDebug,
QModelIndex) -
clone
Creates and returns a copy of this object.
-
data
Overloaded function for
data(int)
withrole = 0
.
-