PDA

View Full Version : // Table's items (QStandardItem) independent scale //



AlexSudnik
22nd June 2012, 12:17
So yeah , instead of adjusting the size of the whole column/row (by the default) , i need to be able to adjust items' individual size...Any hints are welcome^^
Thanks

high_flyer
27th June 2012, 12:08
Have you tried QStyledItemDelegate ?

folibis
27th June 2012, 13:31
You need to subclass your own delegate class, either QAbstractItemDelegate or QStyledItemDelegate
and reimplement method
QSize sizeHint ( const QStyleOptionViewItem & option, const QModelIndex & index )

AlexSudnik
27th June 2012, 18:51
Well , i decided not to get crazy with repainting items and just switch to the Graphics View instead...it's far more logical to use it for what i'm trying to achieve^^
But thx for the reply anyway!:)