Unsolved Selecting data in QTableview using CTRL+C by separating them with comma
-
I have a tableview named "info"
It has selection of extended selectionWhat I want is to copy the selected things to clipboard when I select something and press CTRL+C
Thank You
-
Hi
Well you can use
https://doc.qt.io/qt-5/qshortcut.html
to set up CTRL +C
then use last code from
https://stackoverflow.com/questions/27353026/qtableview-output-save-as-csv-or-txt
and change a bit to use only selected. ( https://doc.qt.io/qt-5/qitemselectionmodel.html )
and then use
https://doc.qt.io/qt-5/qclipboard.html
to put on clipboard.