title: Getting data from selected item in QListView
body: <p>I populate a QListView with QSqlTableModel.</p>
  
  <pre><code>  projectModel = QSqlTableModel()
    projectModel.setTable("project")
    projectModel.select()
  
    projectView = QListView()
    projectView.setModel(projectModel)
    projectView.setModelColumn(1)
  </code></pre>
  
  <ul>
  <li>edit my wording a bit. -</li>
  </ul>
  
  <p>Say my QSqlTableModel has 3 columns. (0) for id, (1) for name, (2) for color, for example.</p>
  
  <p>In my QListView I'm displaying column 1, so only the names. Then I have 1 item selected. How can I retrieve that item's id and color? </p>
  
  <p>Sorry I'm a very beginner at this. Too beginner I can't figure things out reading documentations :(</p>