I want iterate on a QListView and check if a row is selected.
With QT3 there was:
Qt Code:
  1. QListBoxItem *item = qDestin->item( i );
  2. if ( item->isSelected() )
  3. ret.push_back( item->text() );
To copy to clipboard, switch view to plain text mode 


What is the equivalent in QT4 ?

I know there is selectedItems in QTreeVidget but I don't know what to do with this QListModelIndex returned !