i just can find any example in the internet how to loop and get each item in the QListWidget. i need something like this : ( this is not working example ) :

Qt Code:
  1. QListWidget* wl = ui.listWidget_selected;
  2. for (QWidget* w = wl.first(); w != 0; w = wl.next()) {
  3. {
  4. QString itemData = item->data(Qt::UserRole).toString();
  5. }
To copy to clipboard, switch view to plain text mode 

again this is not working