QFont

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

+ new QFont(): QFont

Overrides Component.constructor

Returns: QFont

+ new QFont(font: QFont): QFont

Overrides Component.constructor

Parameters:

NameType
fontQFont

Returns: QFont

+ new QFont(native: NativeElement): QFont

Overrides Component.constructor

Parameters:

NameType
nativeNativeElement

Returns: QFont

+ new QFont(family: string, pointSize?: undefined | number, weight?: QFontWeight, italic?: undefined | false | true): QFont

Overrides Component.constructor

Parameters:

NameType
familystring
pointSize?undefined | number
weight?QFontWeight
italic?undefined | false | true

Returns: QFont

Properties

native

native: NativeElement

Overrides Component.native


nodeChildren

nodeChildren: Set‹Component

Inherited from Component.nodeChildren


Optional nodeParent

nodeParent? : Component

Inherited from Component.nodeParent

Methods

capitalization

capitalization(): QFontCapitalization

Returns: QFontCapitalization


family

family(): string

Returns: string


italic

italic(): boolean

Returns: boolean


pointSize

pointSize(): number

Returns: number


setCapitalization

setCapitalization(caps: QFontCapitalization): void

Parameters:

NameType
capsQFontCapitalization

Returns: void


setFamily

setFamily(family: string): void

Parameters:

NameType
familystring

Returns: void


setItalic

setItalic(enable: boolean): void

Parameters:

NameType
enableboolean

Returns: void


setNodeParent

setNodeParent(parent?: Component): void

Inherited from Component.setNodeParent

Parameters:

NameType
parent?Component

Returns: void


setPointSize

setPointSize(value: number): void

Parameters:

NameType
valuenumber

Returns: void


setStretch

setStretch(factor: QFontStretch): void

Parameters:

NameType
factorQFontStretch

Returns: void


setWeight

setWeight(weight: QFontWeight): void

Parameters:

NameType
weightQFontWeight

Returns: void


stretch

stretch(): QFontStretch

Returns: QFontStretch


toString

toString(): string

Returns: string


weight

weight(): QFontWeight

Returns: QFontWeight


Static fromQVariant

fromQVariant(variant: QVariant): QFont

Parameters:

NameType
variantQVariant

Returns: QFont