java.lang.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 class QPersistentModelIndex
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ConstructorDescriptionSeeQPersistentModelIndex::
QPersistentModelIndex() QPersistentModelIndex
(QModelIndex index) -
Method Summary
Modifier and TypeMethodDescriptionfinal void
assign
(QModelIndex other) final void
assign
(QPersistentModelIndex other) final QModelIndex
child
(int row, int column) clone()
Creates and returns a copy of this object.final int
column()
int
compareTo
(QPersistentModelIndex other) final Object
data()
Overloaded function fordata(int)
withrole = 0
.final Object
data
(int role) boolean
Checks for equality depending on the type of given object.final Qt.ItemFlags
flags()
int
hashCode()
Returns the objects's hash code computed byqHash(QPersistentModelIndex)
.final long
SeeQPersistentModelIndex::
internalId()const 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()
SeeQPersistentModelIndex::
operator const QModelIndex&()const toString()
Seeoperator<<(QDebug,
QPersistentModelIndex) Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QPersistentModelIndex
public QPersistentModelIndex()See
QPersistentModelIndex::
QPersistentModelIndex() -
QPersistentModelIndex
-
QPersistentModelIndex
-
-
Method Details
-
child
-
column
-
data
Overloaded function for
data(int)
withrole = 0
. -
data
-
flags
-
internalId
See
QPersistentModelIndex::
internalId()const -
isValid
-
model
-
toIndex
See
QPersistentModelIndex::
operator const QModelIndex&()const -
assign
-
assign
-
parent
-
row
-
sibling
-
swap
-
equals
Checks for equality depending on the type of given object.
-
compareTo
- Specified by:
compareTo
in interfaceComparable<QPersistentModelIndex>
-
hashCode
Returns the objects's hash code computed byqHash(QPersistentModelIndex)
. -
toString
See
operator<<(QDebug,
QPersistentModelIndex) -
clone
Creates and returns a copy of this object.
-