java.lang.Object
io.qt.QtObject
io.qt.core.QPersistentModelIndex
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
,Comparable<Object>
Used to locate data in a data model
Java wrapper for Qt class QPersistentModelIndex
-
Constructor Summary
ConstructorDescriptionSeeQPersistentModelIndex::
QPersistentModelIndex() QPersistentModelIndex
(QModelIndex index) -
Method Summary
Modifier and TypeMethodDescriptionfinal void
assign
(QModelIndex other) final void
assign
(QPersistentModelIndex other) clone()
Creates and returns a copy of this object.final int
column()
int
Compares to other object depending on its type.final Object
data()
Overloaded function fordata(int)
withrole = 0
.final Object
data
(int role) final boolean
equals
(QModelIndex rhs) Seeoperator==(QPersistentModelIndex,
QModelIndex) final boolean
Seeoperator==(QPersistentModelIndex,
QPersistentModelIndex) 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 void
final QModelIndex
parent()
final int
row()
final QModelIndex
sibling
(int row, int column) final void
swap
(QPersistentModelIndex other) final QModelIndex
toIndex()
toString()
Seeoperator<<(QDebug,
QPersistentModelIndex) Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QPersistentModelIndex
public QPersistentModelIndex()See
QPersistentModelIndex::
QPersistentModelIndex() -
QPersistentModelIndex
- Parameters:
index
-
-
QPersistentModelIndex
- Parameters:
other
-
-
-
Method Details
-
column
- Returns:
-
data
- Parameters:
role
-- Returns:
-
flags
- Returns:
-
internalId
See
QPersistentModelIndex::
internalId()const - Returns:
-
isValid
- Returns:
-
model
- Returns:
-
multiData
- Parameters:
roleDataSpan
-- Since:
- This function was introduced in Qt 6.0.
-
toIndex
- Returns:
-
assign
- Parameters:
other
-
-
assign
- Parameters:
other
-
-
equals
See
operator==(QPersistentModelIndex,
QModelIndex) - Parameters:
rhs
-- Returns:
-
equals
See
operator==(QPersistentModelIndex,
QPersistentModelIndex) - Parameters:
rhs
-- Returns:
-
parent
- Returns:
-
row
- Returns:
-
sibling
- Parameters:
row
-column
-- Returns:
-
swap
- Parameters:
other
-
-
equals
Checks for equality depending on the type of given object.
ckecked by toQPersistentModelIndex
operator==(QPersistentModelIndex,
QPersistentModelIndex)
ckecked by toQModelIndex
operator==(QPersistentModelIndex,
QModelIndex)
-
compareTo
Compares to other object depending on its type.
- Specified by:
compareTo
in interfaceComparable<Object>
-
hashCode
Returns the objects's hash code computed byqHash(QPersistentModelIndex)
. -
toString
See
operator<<(QDebug,
QPersistentModelIndex) -
clone
Creates and returns a copy of this object.
See
QPersistentModelIndex::
QPersistentModelIndex(QPersistentModelIndex) -
data
Overloaded function for
data(int)
withrole = 0
.
-