QModelIndex

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

+ new QModelIndex(arg?: NativeElement): QModelIndex

Overrides Component.constructor

Parameters:

NameType
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:

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


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