PDA

View Full Version : Dymanic setting row height in a QTreeView



fruzzo
15th September 2011, 14:49
Hi,
I want to dymanic setting row height in a QTreeView rearding all its rows.
In order to static modify the row height I reimplemented QItemDelegate::sizeHint in the delegate...now I want to increase/decrease dynamically this height e.g. through a context menu.
I thought to use SizeHintRole roles for model items to set row height but in this case I've a to set the height for each model item...What's the more efficient implementation of this feature?