how can i expand the QTreeWidgetItem when i click the Icon or double click on anywhere the item ?



  • how can i expand the QTreeWidgetItem when i click the Icon or double click on anywhere the item ?
    i want to simulate a "arrow icon" right same with the Qt itself has.
    now i use QTreeWidgetItem::setIcon, but i found no way to just expand the item while i click on the Icon but not anywhere on the item.

    thank you!


Log in to reply
 

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