java.lang.Object
io.qt.internal.NativeUtility.Object
io.qt.QtObject
io.qt.core.QPersistentModelIndex
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
,Comparable<QPersistentModelIndex>
public class QPersistentModelIndex
extends QtObject
implements Comparable<QPersistentModelIndex>, Cloneable
Used to locate data in a data model
Java wrapper for Qt's class QPersistentModelIndex
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ModifierConstructorDescriptionQPersistentModelIndex
(QModelIndex index) protected
Constructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionclone()
final int
column()
int
compareTo
(QPersistentModelIndex 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 void
final QModelIndex
parent()
final int
row()
final QModelIndex
sibling
(int row, int column) final void
swap
(QPersistentModelIndex other) final QModelIndex
toIndex()
toString()
Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QPersistentModelIndex
public QPersistentModelIndex() -
QPersistentModelIndex
-
QPersistentModelIndex
-
QPersistentModelIndex
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
column
-
data
Overloaded function for
data(int)
withrole = 0
. -
data
-
flags
-
internalId
-
isValid
-
model
-
multiData
-
toIndex
-
parent
-
row
-
sibling
-
swap
-
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<QPersistentModelIndex>
-
hashCode
-
toString
-
clone
-