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