QModelIndex

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

+ new QModelIndex(): QModelIndex

Overrides Component.constructor

Returns: QModelIndex

+ new QModelIndex(nativeElement: NativeElement): QModelIndex

Overrides Component.constructor

Parameters:

NameType
nativeElementNativeElement

Returns: QModelIndex

Properties

native

native: NativeElement

Overrides Component.native


nodeChildren

nodeChildren: Set‹Component

Inherited from Component.nodeChildren


Optional nodeParent

nodeParent? : Component

Inherited from Component.nodeParent

Methods

column

column(): number

Returns: number


data

data(role: ItemDataRole): QVariant

Parameters:

NameTypeDefault
roleItemDataRoleItemDataRole.DisplayRole

Returns: QVariant


flags

flags(): ItemFlag

Returns: ItemFlag


isValid

isValid(): boolean

Returns: boolean


parent

parent(): QModelIndex

Returns: QModelIndex


row

row(): number

Returns: number


setNodeParent

setNodeParent(parent?: Component): void

Inherited from Component.setNodeParent

Parameters:

NameType
parent?Component

Returns: void


sibling

sibling(row: number, column: number): QModelIndex

Parameters:

NameType
rownumber
columnnumber

Returns: QModelIndex


siblingAtColumn

siblingAtColumn(column: number): QModelIndex

Parameters:

NameType
columnnumber

Returns: QModelIndex


siblingAtRow

siblingAtRow(row: number): QModelIndex

Parameters:

NameType
rownumber

Returns: QModelIndex


Static fromQVariant

fromQVariant(variant: QVariant): QModelIndex

Parameters:

NameType
variantQVariant

Returns: QModelIndex