title: retrieve a specific data from the selected index in a TreeModel
body: <p>I used a custom model to populate the<code>TreeView</code> and tried using </p>
  
  <blockquote>
  <pre><code>        for ix in self.dataView.selectedIndexes():
              text = ix.data()  # or ix.data()
              print(text)
  </code></pre>
    
    <p>but this prints all the data in that column(index)...here is a picture of the model i used <code>model = QStandardItemModel(0, 3, parent)</code>, <a href="https://i.stack.imgur.com/1IFIM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1IFIM.png" alt="model used"></a></p>
  </blockquote>
  
  <p>My problem is i don't need all the data, i need the data of the 3rd row (specific data) i.e the filepath</p>
  
  <p>this is the output, using the later code </p>
  
  <pre><code>We &amp; Love.txt
  11.630% 
  C:\Users\Black Laptop\Desktop\Work\We &amp; Love.txt
  </code></pre>
  
  <p>i just need the 3rd data, not all, thanks</p>