QIcon
The QIcon class provides scalable icons in different modes and states.
This class is a JS wrapper around Qt's QIcon class
Example
Hierarchy
↳ QIcon
Index
Constructors
Properties
Methods
Constructors
constructor
+ new QIcon(): QIcon
Overrides Component.constructor
Returns: QIcon
+ new QIcon(native: NativeElement): QIcon
Overrides Component.constructor
Parameters:
| Name | Type |
|---|---|
native | NativeElement |
Returns: QIcon
+ new QIcon(filePath: string): QIcon
Overrides Component.constructor
Parameters:
| Name | Type |
|---|---|
filePath | string |
Returns: QIcon
Properties
native
• native: NativeElement
nodeChildren
• nodeChildren: Set‹Component›
Inherited from Component.nodeChildren
Optional nodeParent
• nodeParent? : Component
Inherited from Component.nodeParent
Methods
cacheKey
â–¸ cacheKey(): number
Returns: number
isMask
â–¸ isMask(): boolean
Returns: boolean
pixmap
â–¸ pixmap(width: number, height: number, mode?: QIconMode, state?: QIconState): QPixmap
Parameters:
| Name | Type |
|---|---|
width | number |
height | number |
mode? | QIconMode |
state? | QIconState |
Returns: QPixmap
setIsMask
â–¸ setIsMask(isMask: boolean): void
Parameters:
| Name | Type |
|---|---|
isMask | boolean |
Returns: void
setNodeParent
â–¸ setNodeParent(parent?: Component): void
Inherited from Component.setNodeParent
Parameters:
| Name | Type |
|---|---|
parent? | Component |
Returns: void
Static fromQVariant
â–¸ fromQVariant(variant: QVariant): QIcon
Parameters:
| Name | Type |
|---|---|
variant | QVariant |
Returns: QIcon