Hi Patrick,

Am 21.08.2012 11:24, schrieb Szabo, Patrick (LNG-VIE):
Hi,

Is there any way to make it possible to copy a Table realised with a
QTableWidet?

I can mark it but it will always only copy the content of a single cell.

It copies the value from the selected cell instead of copying everything
I have marked.



if you want to copy teh entire table you could iterate over all rows and columns and copy the content from the cells.

But if you just want to copy the content of the selected cells, you could use the QTableWidget function "selectedItems". This returns a list of QTableQidgetItems. "selectedIndexes()" could be another way to solve your problem.



Best regards
Micha

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to