How to check whether the tree view's item is expanded in delegate?
-
Hi,
I'm developing a Qt application and I want to know whether the tree view's item is expanded in delegate function.
Here is my tree view's delegate..
@void roster_item_delegate::paint(QPainter painter,
const QStyleOptionViewItem &option,
const QModelIndex &index) const
{
/ How can I know whether this item is expanded or not in here? */
}@I think it's possible using the tree view's pointer and isExpanded() function, but I don't know how can I obtain the pointer in delegate function.
Thank you.