title: How do I get the selected and deselected items in a QTreeWidget?
body: <p>I have a tree-widget to which I am adding items. Now I need to call a custom procedure when the item is selected or the item previously selected is unselected (Note: I am learning both Python and Qt - the later seem to by a little too much for me).</p>
  
  <pre><code>for i in vector:
       parent = QtGui.QTreeWidgetItem(treeWidget)
       parent.setText(0, i[0])
       parent.setText(1, i[1])
       parent.setText(2,i[2])
       parent.setCheckState(0,QtCore.Qt.Unchecked)
  </code></pre>