[Qt-interest] QAbstractItemView and tri state check boxes

Graham Labdon Graham.Labdon at avalonsciences.com
Thu Jun 2 12:55:11 CEST 2011


Hello
I have a model/view that allowed me to display a check box for each item in my tree and allowed the user to check or uncheck the item.
What I want, however, is that if an item has subitems and these are not all checked then the parent should be partially checked, if they are all checked the parent should be checked and if none are checked then the parent should be unchecked. This should of course be applied to the whole tree.
I am struggling to implement this and would be grateful if anyone has any suggestions on how I can achieve this

Thanks

Graham
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110602/6f351f16/attachment.html 


More information about the Qt-interest-old mailing list