how to setChildIndicatorPolicy(QTreeWidgetItem::ChildIndicatorPolicy policy) when use QTreeView & QAbstractItemModel?



  • how to setChildIndicatorPolicy(QTreeWidgetItem::ChildIndicatorPolicy policy) when use QTreeView & QAbstractItemModel?
    when i use QTreeWidget and QTreeWidgetItem, i can use setChildIndicatorPolicy to control the visible of the triangle.
    but i want to know is there any way to do this when i use QTreeView & QAbstractItemModel, the MVC way?
    thank you!


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.