title: How can I get the indices of QListWidget::selectedItems()?
body: <p>I have <code>QListWidget</code> and I need to get the indices of selected items. (I could work with items in the list by values, but I have <code>std::vector</code> that contains some objects for each item in the list and I also need to delete them from it.)
  There is a fucntion <code>indexFromItem</code> but it's protected(?) so I can't use it.</p>
  
  <p>Any ideas?</p>
  
  <pre><code>QList&lt;QListWidgetItem *&gt; itemList = lw1-&gt;selectedItems();
  </code></pre>