I want iterate on a QListView and check if a row is selected.
With QT3 there was:
Qt Code:
QListBoxItem *item = qDestin->item( i ); if ( item->isSelected() ) 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 !
Bookmarks