PDA

View Full Version : Fixed column width in QAbstractTableModel



hailflex
10th December 2009, 12:02
How can i set fixed column widths in QAbstractTableModel based on table width? For example, column 1 has 5% of table witdh, column 2 has 25% etc. Is that possible?

sunil.thaha
11th December 2009, 06:58
I think this upto the view to decide how items are arranged. In your case you could create custom delegates and override its sizeHint().