Using:
item=QtGui.QTreeWidgetItem()
item.setCheckState(0,QtCore.Qt.Unchecked)
the TreeWidget Item was set to display a checkbox. I would appreciate if you show me how to connect an Item's checkbox-state-change to a function (so I could link a function every time an Item's checkbox's state changed). And I would like to know what Item's attribute should be queried in order to get checkbox current state. So far I've been using QTreeWidget's
.itemChanged.connect(self.myFunction)
but all I get is Item object itself. What Item's property could be used to get its checkbox's status?...