Class: QgsDetailedItemData¶
This class is the data only representation of a
QgsDetailedItemWidget
, designed to be used in custom views.
Methods
Returns the item's category. |
|
Returns the detailed description for the item. |
|
Returns the item's icon. |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Sets the item's category. |
|
Sets whether the item is checkable. |
|
Sets whether the item is checked. |
|
Sets the detailed description for the item. |
|
Sets whether the item is enabled. |
|
Sets the item's icon. |
|
This is a hint to the delegate to render using a widget rather than manually painting every part of the list item. |
|
Sets the title for the item. |
|
Returns the item's title. |
- class qgis.gui.QgsDetailedItemData[source]¶
Bases:
object
- isRenderedAsWidget(self) bool [source]¶
Returns
True
if the item will be rendered using a widget.See also
- Return type:
bool
- setCategory(self, category: str | None)[source]¶
Sets the item’s
category
.See also
- Parameters:
category (Optional[str])
- setCheckable(self, flag: bool)[source]¶
Sets whether the item is checkable.
See also
- Parameters:
flag (bool)
- setChecked(self, flag: bool)[source]¶
Sets whether the item is checked.
See also
- Parameters:
flag (bool)
- setDetail(self, detail: str | None)[source]¶
Sets the detailed description for the item.
See also
- Parameters:
detail (Optional[str])
- setEnabled(self, flag: bool)[source]¶
Sets whether the item is enabled.
See also
- Parameters:
flag (bool)
- setRenderAsWidget(self, flag: bool)[source]¶
This is a hint to the delegate to render using a widget rather than manually painting every part of the list item.
Note
the delegate may completely ignore this depending on the delegate implementation.
See also
- Parameters:
flag (bool)
- setTitle(self, title: str | None)[source]¶
Sets the
title
for the item.See also
- Parameters:
title (Optional[str])