title: How to select QTreeWidgetItem by clicking its item-widget
body: <p>This code creates <code>QTreeWidget</code> with <code>QComboBox</code> and <code>QLineEdit</code> set as the <code>item widgets</code>.
  If to follow these steps:</p>
  
  <ol>
  <li><p>Right after this dialog opens...</p></li>
  <li><p>Click the item (not its item-widget). Item's background color turns blue.</p></li>
  <li><p>Now click any item-widget of another item (Combobox or LineEdit). </p></li>
  </ol>
  
  <p>The item the combobox is assigned to as the item-widget gets selected (turns blue). Any other attempts to select the item by clicking its item-widget fail. You would have to close dialog and re-open it again. Since this happens only once.</p>
  
  <p>Is it possible to make this feature persistent... so every time an item-widget is clicked the item holding it gets selected as well making a full impression the item and its item-widgets is the same thing. As it acts by 
  default I have to click the item itself to make it selected.</p>
  
  <h2><img src="https://i.stack.imgur.com/KL8nC.png" alt="enter image description here"></h2>
  
  <pre><code>    from PyQt4 import QtCore, QtGui
      app = QtGui.QApplication([])
  
      class Tree(QtGui.QTreeWidget):
          def __init__(self, *args, **kwargs):
              super(Tree, self).__init__()
              for each in ['Item_1','Item_2','Item_3','Item_4','Item_5']:
                  item=QtGui.QTreeWidgetItem()
                  item.setText(0, each)
                  self.addTopLevelItem(item)
                  self.setItemWidget(item, 1, QtGui.QComboBox())
                  self.setItemWidget(item, 2, QtGui.QLineEdit())
              self.setColumnCount(5)
              self.resize(360,240)
              self.show()
  
      tree=Tree()
      sys.exit(app.exec_())
  </code></pre>