java.lang.Object
io.qt.QtObject
io.qt.core.QModelIndex
- All Implemented Interfaces:
QtObjectInterface,Cloneable,Comparable<QModelIndex>
Used to locate data in a data model
Java wrapper for Qt class QModelIndex
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal QModelIndexchild(int row, int column) clone()Creates and returns a copy of this object.final intcolumn()intcompareTo(QModelIndex other) final Objectdata()Overloaded function fordata(int)withrole = 0.final Objectdata(int role) final booleanequals(QModelIndex other) booleanfinal Qt.ItemFlagsflags()inthashCode()Returns the objects's hash code computed byqHash(QModelIndex).final longfinal booleanisValid()final QAbstractItemModelmodel()final QModelIndexparent()final introw()final QModelIndexsibling(int row, int column) final QModelIndexsiblingAtColumn(int column) final QModelIndexsiblingAtRow(int row) toString()Seeoperator<<(QDebug,QModelIndex) Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QModelIndex
public QModelIndex() -
QModelIndex
- Parameters:
other-
-
-
Method Details
-
child
- Parameters:
row-column-- Returns:
-
column
- Returns:
-
data
- Parameters:
role-- Returns:
-
flags
- Returns:
- Since:
- This function was introduced in Qt 4.2.
-
internalId
- Returns:
-
isValid
- Returns:
-
model
- Returns:
-
equals
- Parameters:
other-- Returns:
-
parent
- Returns:
-
row
- Returns:
-
sibling
- Parameters:
row-column-- Returns:
-
siblingAtColumn
- Parameters:
column-- Returns:
- Since:
- This function was introduced in Qt 5.11.
-
siblingAtRow
- Parameters:
row-- Returns:
- Since:
- This function was introduced in Qt 5.11.
-
equals
-
compareTo
- Specified by:
compareToin interfaceComparable<QModelIndex>
-
hashCode
Returns the objects's hash code computed byqHash(QModelIndex). -
toString
See
operator<<(QDebug,QModelIndex) -
clone
Creates and returns a copy of this object.
-
data
Overloaded function for
data(int)withrole = 0.
-