Unsolved How to select data present in row in QTableView
-
I have a QTableView named tabl
It consists of some columns with some dataI want to copy the selected area text to clipboard when user press CTRL+C
Selecting one row works fine but
In case of selecting more than one rows It doesn't workHow can I make it able to work>>
Thank-you
-
Hi and welcome to the forums
Which part "doesnt work"
selecting more than one row or copy all rows to clipboard ?What code do you have now ?
any way, make sure you have
setSelectionMode(QAbstractItemView::ExtendedSelection);
so user can select multiple rows holding CTRL key.
Or some of the other ways
https://doc.qt.io/qt-5/qabstractitemview.html#SelectionMode-enum