title: How to display index number in QListView?
body: <p>I have ListView and iterating over a dictionary. I want to display the index number per row in the view.</p>
  <pre><code>model = QtGui.QStandardItemModel()
  self.listView.setModel(model)
  
  results = {'D2_SMI_1': True, 'D2_SMI_2': False}
  
  for key, value in results.items():
      item = QStandardItem(key)
      item.setCheckable(True)
      item.setCheckState(value)
      model.appendRow(item)
  </code></pre>
  <p><a href="https://i.stack.imgur.com/jFgPM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jFgPM.png" alt="enter image description here" /></a></p>