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 class QPersistentModelIndex
-
Nested Class Summary
-
Constructor Summary
Constructors Modifier Constructor Description QPersistentModelIndex()
QPersistentModelIndex(QModelIndex index)
QPersistentModelIndex(QPersistentModelIndex other)
protected
QPersistentModelIndex(QtObject.QPrivateConstructor p)
Constructor for internal use only. -
Method Summary
Modifier and Type Method Description QModelIndex
child(int row, int column)
Deprecated.QPersistentModelIndex
clone()
int
column()
int
compareTo(QPersistentModelIndex other)
Object
data()
Overloaded function fordata(int)
withrole = 0
.Object
data(int role)
boolean
equals(Object other)
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface.Qt.ItemFlags
flags()
int
hashCode()
long
internalId()
boolean
isValid()
QAbstractItemModel
model()
QModelIndex
parent()
int
row()
QModelIndex
sibling(int row, int column)
void
swap(QPersistentModelIndex other)
QModelIndex
toIndex()
String
toString()
-
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
-
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
public int hashCode() -
toIndex
-
toString
-
clone
-