PDA

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



AlexSudnik
22nd June 2012, 11: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, 11:08
Have you tried QStyledItemDelegate ?

folibis
27th June 2012, 12: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, 17: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!:)