java.lang.Object
io.qt.internal.NativeUtility.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's class QModelIndex
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ModifierConstructorDescriptionprotected
Constructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionfinal QModelIndex
child
(int row, int column) Deprecated.clone()
final int
column()
int
compareTo
(QModelIndex other) final Object
data()
Overloaded function fordata(int)
withrole = 0
.final Object
data
(int role) boolean
Used to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical.final Qt.ItemFlags
flags()
int
hashCode()
final long
final boolean
isValid()
final QAbstractItemModel
model()
final QModelIndex
parent()
final int
row()
final QModelIndex
sibling
(int row, int column) final QModelIndex
siblingAtColumn
(int column) final QModelIndex
siblingAtRow
(int row) toString()
Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QModelIndex
public QModelIndex() -
QModelIndex
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
child
Deprecated. -
column
-
data
Overloaded function for
data(int)
withrole = 0
. -
data
-
flags
-
internalId
-
isValid
-
model
-
parent
-
row
-
sibling
-
siblingAtColumn
-
siblingAtRow
-
equals
Description copied from class:QtObject
Used to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical. Qt value types override this method to make a value comparison. Otherwise it will return the result of calling the super class implementation. -
compareTo
- Specified by:
compareTo
in interfaceComparable<QModelIndex>
-
hashCode
-
toString
-
clone
-
QAbstractItemModel.index(int, int, io.qt.core.QModelIndex)
instead