QTableWidgetItem
Creates an item for QTableWidget.
This class is a JS wrapper around Qt's QTableWidgetItem class
Example
Hierarchy
↳ QTableWidgetItem
Index
Constructors
Properties
Methods
- background
- checkState
- column
- data
- flags
- font
- foreground
- icon
- isSelected
- row
- setBackground
- setCheckState
- setData
- setFlags
- setFont
- setForeground
- setIcon
- setSelected
- setSizeHint
- setStatusTip
- setText
- setTextAlignment
- setToolTip
- setWhatsThis
- sizeHint
- statusTip
- text
- textAlignment
- toolTip
- type
- whatsThis
Constructors
constructor
+ new QTableWidgetItem(): QTableWidgetItem
Overrides Component.constructor
Returns: QTableWidgetItem
+ new QTableWidgetItem(other
: QTableWidgetItem): QTableWidgetItem
Overrides Component.constructor
Parameters:
Name | Type |
---|---|
other | QTableWidgetItem |
Returns: QTableWidgetItem
+ new QTableWidgetItem(native
: NativeElement): QTableWidgetItem
Overrides Component.constructor
Parameters:
Name | Type |
---|---|
native | NativeElement |
Returns: QTableWidgetItem
+ new QTableWidgetItem(text
: string): QTableWidgetItem
Overrides Component.constructor
Parameters:
Name | Type |
---|---|
text | string |
Returns: QTableWidgetItem
Properties
native
• native: NativeElement | null
Inherited from Component.native
Methods
background
â–¸ background(): QBrush
Returns: QBrush
checkState
â–¸ checkState(): CheckState
Returns: CheckState
column
â–¸ column(): number
Returns: number
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
isSelected
â–¸ isSelected(): boolean
Returns: boolean
row
â–¸ row(): number
Returns: number
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
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
: AlignmentFlag): void
Parameters:
Name | Type |
---|---|
alignment | AlignmentFlag |
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(): AlignmentFlag
Returns: AlignmentFlag
toolTip
â–¸ toolTip(): string
Returns: string
type
â–¸ type(): number
Returns: number
whatsThis
â–¸ whatsThis(): string
Returns: string