selected Rows/Line in QTableView copy to QClipboard
- by Berschi
Hi.
First of all, sorry for bad English.
It's about C++ and Qt. I have a SQLite-Database and I did it into a QSqlTableModel.
To show the Database, I put that Model into a QTableView.
Now I want to create a Method where the selected Rows (or the whole Line) will be copied into the QClipboard. After that I want to insert it into my OpenOffice.Calc-Document.
But I have no Idea what to do with the "Selected"-SIGNAL and the QModelIndex and how to put this into the Clipboard.
So can you please help me?
Berschi