PDA

View Full Version : How to select and copy a QTableWidget column ?



gen_mass
1st July 2010, 12:07
Hi,

I have a program that process some data and I use a QTableWidget to contain the results . I would like to analyse these results on Microsoft Excel.
Is there a simple way to select an entire column of a QTableWidget in order to paste it in Excel ?

Thanks for your help !!

Talei
1st July 2010, 12:09
You can loop through column content and save it to the CSV file, format is "data,", and then simply import it in the excel. Also You can export it as XML data, AFAIK excel opens that data format, but CSV is far easiest and fastest solution.