<SOLVED> Adding a QStyledDelegate to a tree view
-
Hi
I have a tree view that renders data contained in a class derived from QAbstractItemView, now I want to add a QStyledItemDelegate.
So I call
@
m_treeView->setItemDelegate(new SessionStyledDelegate(this));
@But none of the methods in my delegate get called.
Is there anything else that I need to do?
-
Hi,
Can you show your SessionStyledDelegate ?
What might happen is a method signature mismatch e.g. missing a const
-
That was the problem - missing const specifiers on overridden methods