title: How to check state of QTreeWidget Item?
body: <p>Using:</p>
  
  <pre><code>    item=QtGui.QTreeWidgetItem()
      item.setCheckState(0,QtCore.Qt.Unchecked)
  </code></pre>
  
  <p>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</p>
  
  <pre><code>.itemChanged.connect(self.myFunction)
  </code></pre>
  
  <p>but all I get is Item object itself. What Item's property could be used to get its checkbox's status?... </p>