QModelIndex
Hierarchy
-
↳ QModelIndex
Index
Constructors
Properties
Methods
Constructors
constructor
+ new QModelIndex(arg?
: NativeElement): QModelIndex
Overrides Component.constructor
Parameters:
Name | Type |
---|---|
arg? | NativeElement |
Returns: QModelIndex
Properties
native
• native: NativeElement | null
Inherited from Component.native
Methods
column
▸ column(): number
Returns: number
data
▸ data(role
: ItemDataRole): QVariant
Parameters:
Name | Type | Default |
---|---|---|
role | ItemDataRole | ItemDataRole.DisplayRole |
Returns: QVariant
flags
▸ flags(): ItemFlag
Returns: ItemFlag
isValid
▸ isValid(): boolean
Returns: boolean
parent
▸ parent(): QModelIndex
Returns: QModelIndex
row
▸ row(): number
Returns: number
sibling
▸ sibling(row
: number, column
: number): QModelIndex
Parameters:
Name | Type |
---|---|
row | number |
column | number |
Returns: QModelIndex
siblingAtColumn
▸ siblingAtColumn(column
: number): QModelIndex
Parameters:
Name | Type |
---|---|
column | number |
Returns: QModelIndex
siblingAtRow
▸ siblingAtRow(row
: number): QModelIndex
Parameters:
Name | Type |
---|---|
row | number |
Returns: QModelIndex
Static
fromQVariant
▸ fromQVariant(variant
: QVariant): QModelIndex
Parameters:
Name | Type |
---|---|
variant | QVariant |
Returns: QModelIndex