How do I manage icon events for open and close in a QTreeWidget
?
I have this code:
iconNameOpen="folder"
iconNameClose="folder_orange_open"
if ID>0:#file
iconNameFile="file_important"
icon=QIcon(':/manageinc/svg/reinhardticons/filesystems/{}.svg'.format(iconNameFile))
item.setIcon(0,icon)
else:
icon=QIcon(':/manageinc/svg/reinhardticons/filesystems/{}.svg'.format(iconNameOpen))
item.setIcon(0,icon)
#how manage when only this folder is opened or close?
If I do a stylesheet, I view both File and Folder (ID>0 or <0) with the same property).