TableWidgetItem
Qt Base Class: QTableWidgetItem
Signature: QTableWidgetItem(self, icon: Union[PySide6.QtGui.QIcon, PySide6.QtGui.QPixmap], text: str, type: int = <ItemType.Type: 0>) -> None
QTableWidgetItem(self, other: PySide6.QtWidgets.QTableWidgetItem) -> None
QTableWidgetItem(self, text: str, type: int = <ItemType.Type: 0>) -> None
QTableWidgetItem(self, type: int = <ItemType.Type: 0>) -> None
Base classes
Name | Children | Inherits |
---|---|---|
QTableWidgetItem PySide6.QtWidgets QTableWidgetItem(self, icon: Union[PySide6.QtGui.QIcon, PySide6.QtGui.QPixmap], text: str, type: int \= <ItemType.Type: 0>) -> None |
â‹” Inheritance diagram
graph TD
1473296347632["widgets.TableWidgetItem"]
1473290736464["QtWidgets.QTableWidgetItem"]
1473291690208["Shiboken.Object"]
140713234304496["builtins.object"]
1473290736464 --> 1473296347632
1473291690208 --> 1473290736464
140713234304496 --> 1473291690208
🛈 DocStrings
Bases: QTableWidgetItem
Item for use with the QTableWidget class.
Source code in prettyqt\widgets\tablewidgetitem.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 |
|
get_checkstate() -> constants.CheckStateStr
set_checkstate(state: constants.CheckStateStr | constants.CheckState)
Set checkstate of the checkbox.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
state |
CheckStateStr | CheckState
|
checkstate to use |
required |
set_editable(editable: bool)
set_flag(flag_name: constants.ItemFlagStr | constants.ItemFlag, value: bool)
Set a flag based on str name.
Source code in prettyqt\widgets\tablewidgetitem.py
set_icon(icon: datatypes.IconType)
Set the icon for the action.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
icon |
IconType
|
icon to use |
required |
set_text_alignment(horizontal: constants.HorizontalAlignmentStr | constants.AlignmentFlag | None = None, vertical: constants.VerticalAlignmentStr | constants.AlignmentFlag | None = None)
Set text alignment of the checkbox.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
horizontal |
HorizontalAlignmentStr | AlignmentFlag | None
|
horizontal text alignment to use |
None
|
vertical |
VerticalAlignmentStr | AlignmentFlag | None
|
vertical text alignment to use |
None
|