My use case is a TreeView that acts as a file browser, where files are not necessarily leaf nodes. A double click should open the file without expanding its node in the tree. Single-clicking on the triangle beside the node should still expand/collapse the node. When expanded the node for a file will show items for objects contained within the file. For example consider a .zip file that you can drill into.
If there is some workaround to prevent double-click from expanding and collapsing nodes in a TreeView please let me know. Installing an EventFilter on the node and consuming the event does not prevent the expand/collapse action from happening.
Perhaps a simple property doubleClickToExpandCollapse could be used.
SeeRT-19246
If there is some workaround to prevent double-click from expanding and collapsing nodes in a TreeView please let me know. Installing an EventFilter on the node and consuming the event does not prevent the expand/collapse action from happening.
Perhaps a simple property doubleClickToExpandCollapse could be used.
See