PDA

View Full Version : tables



tommy
28th November 2007, 16:12
Hi,
My program calculates several things for the user. I'd like to display all the results in a tablular form in such a way that column 1 holds the legends and column 2 holds the numbers, like:

result1 5
result2 8
result3 17

What would be the best way to do it. I would use grid layout apprach and labels but maybe there is a more elegant approach. Maybe QTabelView?
Thank you.

jacek
28th November 2007, 16:17
If you just want to show the results, QTableWidget will be the best. If you need something more complex, use QTableView and a custom model (or QStandardItemModel).