Subgroup: Detailed
Class: QgsDetailedItemData¶
-
class
qgis.gui.
QgsDetailedItemData
¶ Bases:
sip.wrapper
Constructor for QgsDetailedItemData.
QgsDetailedItemData(QgsDetailedItemData)
This class is the data only representation of a QgsDetailedItemWidget, designed to be used in custom views.
Methods
category
detail
icon
isCheckable
isChecked
isEnabled
isRenderedAsWidget
setCategory
setCheckable
setChecked
setDetail
setEnabled
setIcon
setRenderAsWidget
This is a hint to the delegate to render using a widget rather than manually painting every part of the list item. setTitle
title
Signals
Attributes
-
category
(self) → str¶
-
detail
(self) → str¶
-
icon
(self) → QPixmap¶
-
isCheckable
(self) → bool¶
-
isChecked
(self) → bool¶
-
isEnabled
(self) → bool¶
-
isRenderedAsWidget
(self) → bool¶
-
setCategory
(self, category: str)¶
-
setCheckable
(self, flag: bool)¶
-
setChecked
(self, flag: bool)¶
-
setDetail
(self, detail: str)¶
-
setEnabled
(self, flag: bool)¶
-
setIcon
(self, icon: QPixmap)¶
-
setRenderAsWidget
(self, flag: bool)¶ 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.
-
setTitle
(self, title: str)¶
-
title
(self) → str¶
-