I have created a QTreeWidget
and set animation to true (setAnimated(true)
).
When I'm clicking on a mark (triangle) at the left of item it expands smoothly, but when I'm double clicking on the item it expands too fast (almost like there is no "animated" flag set).
I want smooth animation on double click too. How can I solve this problem?
QTreeView
calls QTreeViewPrivate::expandOrCollapseItemAtPos
on mark click and QTreeViewPrivate::expand
on double click, so I have no access to these methods.
I'm using PySide for creating Qt application (but I've tried C++ and the problem is the same).