How can I judge user click position is on one QTreeView item(index) 's "+" (expanded flag)
General and Desktop
1
Posts
1
Posters
492
Views
1
Watching
-
wrote on 22 Aug 2014, 10:03 last edited by
I need to do some process before the item collapsed or expanded. So I derived MyTreeView : public QTreeView .
Overload QTreeView ::MousePressEvent(). I know most stuff useful for me is in QTreeViewPrivate. But is private in QTreeView .the Derived MyTreeView is not accessible.
I think : VisualRect(index) and style()->getSubElement() . may help me to get the rect of "+" flag.
Thanks in advance for any advice!
1/1