QListWidgetItem
Creates an item for QListWidget.
This class is a JS wrapper around Qt's QListWidgetItem class
Example
Hierarchy
↳ QListWidgetItem
Index
Constructors
Properties
Methods
- background
- checkState
- data
- flags
- font
- foreground
- icon
- isHidden
- isSelected
- setBackground
- setCheckState
- setData
- setFlags
- setFont
- setForeground
- setHidden
- setIcon
- setSelected
- setSizeHint
- setStatusTip
- setText
- setTextAlignment
- setToolTip
- setWhatsThis
- sizeHint
- statusTip
- text
- textAlignment
- toolTip
- type
- whatsThis
Constructors
constructor
+ new QListWidgetItem(arg?
: QListWidgetItem | NativeElement | string): QListWidgetItem
Overrides Component.constructor
Parameters:
Name | Type |
---|---|
arg? | QListWidgetItem | NativeElement | string |
Returns: QListWidgetItem
Properties
native
• native: NativeElement | null
Inherited from Component.native
Methods
background
â–¸ background(): QBrush
Returns: QBrush
checkState
â–¸ checkState(): CheckState
Returns: CheckState
data
â–¸ data(role
: number): QVariant
Parameters:
Name | Type |
---|---|
role | number |
Returns: QVariant
flags
â–¸ flags(): ItemFlag
Returns: ItemFlag
font
â–¸ font(): QFont
Returns: QFont
foreground
â–¸ foreground(): QBrush
Returns: QBrush
icon
â–¸ icon(): QIcon
Returns: QIcon
isHidden
â–¸ isHidden(): boolean
Returns: boolean
isSelected
â–¸ isSelected(): boolean
Returns: boolean
setBackground
â–¸ setBackground(brush
: QBrush): void
Parameters:
Name | Type |
---|---|
brush | QBrush |
Returns: void
setCheckState
â–¸ setCheckState(state
: CheckState): void
Parameters:
Name | Type |
---|---|
state | CheckState |
Returns: void
setData
â–¸ setData(role
: number, value
: QVariant): void
Parameters:
Name | Type |
---|---|
role | number |
value | QVariant |
Returns: void
setFlags
â–¸ setFlags(flags
: ItemFlag): void
Parameters:
Name | Type |
---|---|
flags | ItemFlag |
Returns: void
setFont
â–¸ setFont(font
: QFont): void
Parameters:
Name | Type |
---|---|
font | QFont |
Returns: void
setForeground
â–¸ setForeground(brush
: QBrush): void
Parameters:
Name | Type |
---|---|
brush | QBrush |
Returns: void
setHidden
â–¸ setHidden(hide
: boolean): void
Parameters:
Name | Type |
---|---|
hide | boolean |
Returns: void
setIcon
â–¸ setIcon(icon
: QIcon): void
Parameters:
Name | Type |
---|---|
icon | QIcon |
Returns: void
setSelected
â–¸ setSelected(select
: boolean): void
Parameters:
Name | Type |
---|---|
select | boolean |
Returns: void
setSizeHint
â–¸ setSizeHint(size
: QSize): void
Parameters:
Name | Type |
---|---|
size | QSize |
Returns: void
setStatusTip
â–¸ setStatusTip(statusTip
: string): void
Parameters:
Name | Type |
---|---|
statusTip | string |
Returns: void
setText
â–¸ setText(text
: string): void
Parameters:
Name | Type |
---|---|
text | string |
Returns: void
setTextAlignment
â–¸ setTextAlignment(alignment
: number): void
Parameters:
Name | Type |
---|---|
alignment | number |
Returns: void
setToolTip
â–¸ setToolTip(toolTip
: string): void
Parameters:
Name | Type |
---|---|
toolTip | string |
Returns: void
setWhatsThis
â–¸ setWhatsThis(whatsThis
: string): void
Parameters:
Name | Type |
---|---|
whatsThis | string |
Returns: void
sizeHint
â–¸ sizeHint(): QSize
Returns: QSize
statusTip
â–¸ statusTip(): string
Returns: string
text
â–¸ text(): string
Returns: string
textAlignment
â–¸ textAlignment(): number
Returns: number
toolTip
â–¸ toolTip(): string
Returns: string
type
â–¸ type(): number
Returns: number
whatsThis
â–¸ whatsThis(): string
Returns: string