title: How to get QComboBox Item data
body: <p>Instead of using <code>.addItem("Item Name", "My Data")</code> to populate the <code>QComboBox</code> </p>
  
  <p>I create its item first:</p>
  
  <p><code>item = QtGui.QStandardItem("Item Name")</code></p>
  
  <p>Then I set item's data:</p>
  
  <p><code>item.setData("My data")</code></p>
  
  <p>Question. How to get the data stored in Combo's Item from inside of <code>currentIndexChanged()</code> method which gets the clicked ComboBox item's index as an argument:</p>
  
  <pre><code>import sys
  import PySide.QtCore as QtCore
  import PySide.QtGui as QtGui
  
  class MyCombo(QtGui.QWidget):
      def __init__(self, *args):
          QtGui.QWidget.__init__(self, *args)
          vLayout=QtGui.QVBoxLayout(self)
          self.setLayout(vLayout)
  
          self.combo=QtGui.QComboBox(self)
          self.combo.currentIndexChanged.connect(self.currentIndexChanged)
          comboModel=self.combo.model()
          for i in range(3):
              item = QtGui.QStandardItem(str(i))
              item.setData('MY DATA' + str(i) )
              comboModel.appendRow(item)
          vLayout.addWidget(self.combo)
  
      def currentIndexChanged(self, index):
          print index        
  
  if __name__ == "__main__":
      app = QtGui.QApplication(sys.argv)
      w = MyCombo()
      w.show()
      sys.exit(app.exec_())
  </code></pre>