Skip to main content

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