views:

21

answers:

0

Hey all,

I'm using Qt 4.7.0, a Qtreeview with multiple columns.

What I want to do is "simple" : I want a line to increase its height, when it's selected.

Will delegates be enough to do this ?

I've been through some stuff with a QTableView :

m_pMyTableView->verticalHeader()->setResizeMode(QHeaderView::Interactive);
...
QSize AbstractItemDelegate::sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const;

It's working with this tableview, but I can't see how I'll do this on a QTreeview, since, for a start, it doesn't have any vertical headers...

Can someone enlight my path please ?