[Qt-interest] QTableView copy range

Duane Hebert spoo at flarn.com
Fri May 22 14:59:33 CEST 2009


Qt 4.5.1 on Win32.
I have a QTableWidget and my user wants to be able to copy cells to an Excel spreadsheet.  He can double click each cell and use the 
context menu to copy/paste.  He would like to select ranges, like all cells in a column and copy them.  But when I select multiple 
cells, the whole column, the whole row etc. the context menu doesn't work.  When I select cells consecutively using the ctrl click 
or shift click methods, they are highlighted but again the context menu doesn't work.

What's the easiest way to achieve this? 




More information about the Qt-interest-old mailing list