selected Rows/Line in QTableView copy to QClipboard

Posted by Berschi on Stack Overflow See other posts from Stack Overflow or by Berschi
Published on 2009-08-04T22:26:38Z Indexed on 2010/05/28 1:11 UTC
Read the original article Hit count: 474

Filed under:
|
|
|
|

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

© Stack Overflow or respective owner

Related posts about c++

Related posts about qt