QFont
Hierarchy
-
↳ QFont
Index
Constructors
Properties
Methods
- bold
- capitalization
- family
- italic
- pixelSize
- pointSize
- setBold
- setCapitalization
- setFamily
- setItalic
- setPixelSize
- setPointSize
- setStretch
- setStyleName
- setWeight
- stretch
- toString
- weight
- fromQVariant
Constructors
constructor
+ new QFont(): QFont
Overrides Component.constructor
Returns: QFont
+ new QFont(font
: QFont): QFont
Overrides Component.constructor
Parameters:
Name | Type |
---|---|
font | QFont |
Returns: QFont
+ new QFont(native
: NativeElement): QFont
Overrides Component.constructor
Parameters:
Name | Type |
---|---|
native | NativeElement |
Returns: QFont
+ new QFont(family
: string, pointSize?
: number, weight?
: QFontWeight, italic?
: boolean): QFont
Overrides Component.constructor
Parameters:
Name | Type |
---|---|
family | string |
pointSize? | number |
weight? | QFontWeight |
italic? | boolean |
Returns: QFont
Properties
native
• native: NativeElement | null
Inherited from Component.native
Methods
bold
▸ bold(): boolean
Returns: boolean
capitalization
▸ capitalization(): QFontCapitalization
Returns: QFontCapitalization
family
▸ family(): string
Returns: string
italic
▸ italic(): boolean
Returns: boolean
pixelSize
▸ pixelSize(): number
Returns: number
pointSize
▸ pointSize(): number
Returns: number
setBold
▸ setBold(enable
: boolean): void
Parameters:
Name | Type |
---|---|
enable | boolean |
Returns: void
setCapitalization
▸ setCapitalization(caps
: QFontCapitalization): void
Parameters:
Name | Type |
---|---|
caps | QFontCapitalization |
Returns: void
setFamily
▸ setFamily(family
: string): void
Parameters:
Name | Type |
---|---|
family | string |
Returns: void
setItalic
▸ setItalic(enable
: boolean): void
Parameters:
Name | Type |
---|---|
enable | boolean |
Returns: void
setPixelSize
▸ setPixelSize(value
: number): void
Parameters:
Name | Type |
---|---|
value | number |
Returns: void
setPointSize
▸ setPointSize(value
: number): void
Parameters:
Name | Type |
---|---|
value | number |
Returns: void
setStretch
▸ setStretch(factor
: QFontStretch): void
Parameters:
Name | Type |
---|---|
factor | QFontStretch |
Returns: void
setStyleName
▸ setStyleName(style
: string): void
Parameters:
Name | Type |
---|---|
style | string |
Returns: void
setWeight
▸ setWeight(weight
: QFontWeight): void
Parameters:
Name | Type |
---|---|
weight | QFontWeight |
Returns: void
stretch
▸ stretch(): QFontStretch
Returns: QFontStretch
toString
▸ toString(): string
Returns: string
weight
▸ weight(): QFontWeight
Returns: QFontWeight
Static
fromQVariant
▸ fromQVariant(variant
: QVariant): QFont
Parameters:
Name | Type |
---|---|
variant | QVariant |
Returns: QFont