ListWidgetItem
Base classes
| Name | Children | Inherits |
|---|---|---|
SerializeMixinprettyqt.utils.serializemixin |
||
| QListWidgetItem PySide6.QtWidgets QListWidgetItem(self, text: str, /, listview: PySide6.QtWidgets.QListWidget | None \= None, type: int \= <ItemType.Type: 0>) -> None |
â‹” Inheritance diagram
graph TD
3130383506["widgets.ListWidgetItem"]
69336483["utils.SerializeMixin"]
2751680898["builtins.object"]
2691890077["QtWidgets.QListWidgetItem"]
37984305["Shiboken.Object"]
69336483 --> 3130383506
2751680898 --> 69336483
2691890077 --> 3130383506
37984305 --> 2691890077
2751680898 --> 37984305
🛈 DocStrings
Bases: SerializeMixin, QListWidgetItem
Item for use with the QListWidget item view class.
Source code in prettyqt/widgets/listwidgetitem.py
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_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
|