
Originally Posted by
parkourpenner
So I will read more about, maybe I will get it

tableWidget
->selectionModel
()->select
(tableWidget
->model
()->index
(0,
0),
QItemSelectionModel::SelectCurrent|QItemSelectionModel
::Rows);
tableWidget
->selectionModel
()->select
(tableWidget
->model
()->index
(1,
1),
QItemSelectionModel::Select|QItemSelectionModel
::Rows);
tableWidget->selectionModel()->select(tableWidget->model()->index(0,0), QItemSelectionModel::SelectCurrent|QItemSelectionModel::Rows);
tableWidget->selectionModel()->select(tableWidget->model()->index(1,1), QItemSelectionModel::Select|QItemSelectionModel::Rows);
To copy to clipboard, switch view to plain text mode
to select row 1 and 2...
Bookmarks