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
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
Have you tried QStyledItemDelegate ?
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
You need to subclass your own delegate class, either QAbstractItemDelegate or QStyledItemDelegate
and reimplement method
QSize sizeHint ( const QStyleOptionViewItem & option, const QModelIndex & index )
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!![]()
Bookmarks