java.lang.Object
io.qt.internal.QtJambiObject
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 TypeMethodDescriptionfinal QModelIndex
child
(int row, int column) Deprecated.clone()
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 native resources with the other object if the other object is a subtype of QtJambiInterface.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 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
-
child
Deprecated. -
column
-
data
Overloaded function for
data(int)
withrole = 0
. -
data
-
flags
-
internalId
-
isValid
-
model
-
toIndex
-
parent
-
row
-
sibling
-
swap
-
equals
Description copied from class:QtObject
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface. Otherwise it will return the result of calling the super class implementation. -
compareTo
- Specified by:
compareTo
in interfaceComparable<QPersistentModelIndex>
-
hashCode
-
toString
-
clone
-
QAbstractItemModel.index(int, int, io.qt.core.QModelIndex)
instead