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