ok that works sorta.

This is what i have
Qt Code:
  1. QItemSelectionModel *selections = ui.tableView->selectionModel();
  2. QModelIndexList selected = selections->selectedIndexes();
  3.  
  4. for( i = 0 ; i < selected.size(); i++ )
  5. {
  6. rowid = selected[i].row();
To copy to clipboard, switch view to plain text mode 
but size() doesn't return the correct number of selected items.