Using delegate with QListWidgetItem

9 views
Skip to first unread message

kiteh

unread,
Jul 15, 2019, 6:00:53 PM7/15/19
to Python Programming for Autodesk Maya
Hi all, I have some issues with the use of delegate model...


In my QListWidget, I am trying to categorize stuff. In the give example, there are 2 catergories - "All Nums" and "All Letters".
If I tried to check/ uncheck on either of the above mentioned category, the sub-items do get checked or unchecked accordingly to the top/ category item state.

Now I tried to introduce in a context menu that only effects on the category item in which it should work the same way as mentioned above.
However, while the category does gets checked/unchecked, apparently its sub-items are not.

And it seems that QListWidgetItem does not have a trigger or toggle signal that I can used.
Reply all
Reply to author
Forward
0 new messages