Subgroup: Tree

Class: QgsTreeWidgetItemObject

class qgis.gui.QgsTreeWidgetItemObject

Bases: PyQt5.QtCore.QObject, qgis._gui.QgsTreeWidgetItem

Custom QgsTreeWidgetItem with extra signals when item is edited.

New in version 3.0: Methods

addChild
addChildren
alwaysOnTopPriority Returns the item’s priority when it is set to show always on top.
background
blockSignals
checkState
child
childCount
childEvent
childIndicatorPolicy
children
clone
columnCount
connectNotify
customEvent
data
deleteLater
disconnect
disconnectNotify
dumpObjectInfo
dumpObjectTree
dynamicPropertyNames
emitDataChanged
event
eventFilter
findChild findChild(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> QObject
findChildren findChildren(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject]
flags
font
foreground
icon
indexOfChild
inherits
insertChild
insertChildren
installEventFilter
isDisabled
isExpanded
isFirstColumnSpanned
isHidden
isSelected
isSignalConnected
isWidgetType
isWindowType
killTimer
metaObject
moveToThread
objectName
parent
property
pyqtConfigure Each keyword argument is either the name of a Qt property or a Qt signal.
read
receivers
removeChild
removeEventFilter
sender
senderSignalIndex
setAlwaysOnTopPriority Sets a the item to display always on top of other items in the widget, regardless of the sort column and sort or display value for the item.
setBackground
setCheckState
setChildIndicatorPolicy
setData Sets the value for the item’s column and role to the given value.
setDisabled
setExpanded
setFirstColumnSpanned
setFlags
setFont
setForeground
setHidden
setIcon
setObjectName
setParent
setProperty
setSelected
setSizeHint
setSortData Sets the custom sort data for a specified column.
setStatusTip
setText
setTextAlignment
setToolTip
setWhatsThis
signalsBlocked
sizeHint
sortChildren
sortData Returns the custom sort data for a specified column.
startTimer
statusTip
takeChild
takeChildren
text
textAlignment
thread
timerEvent
toolTip
tr
treeWidget
type
whatsThis
write

Attributes

DontShowIndicator
DontShowIndicatorWhenChildless
ShowIndicator
Type
UserType
destroyed destroyed(self, QObject = None) [signal]
itemEdited This signal is emitted when the contents of the column in the specified item has been edited by the user.
objectNameChanged objectNameChanged(self, str) [signal]
staticMetaObject
childEvent()
connectNotify()
customEvent()
disconnectNotify()
emitDataChanged()
isSignalConnected()
itemEdited

This signal is emitted when the contents of the column in the specified item has been edited by the user. [signal]

receivers()
sender()
senderSignalIndex()
setData(self, column: int, role: int, value: Any)

Sets the value for the item’s column and role to the given value.

timerEvent()