View Full Version : QTreeWidget and QCheckBox

12th April 2009, 03:08
Hello,everyone,I am a new beginner here ,I have some questions ,anticipate your help,thank you,firends~~
I create a class from QTreeWidget,But I hope the QTreeWidgetItem is just like a QCheckBox,In the front of each QTreeWidgetItem,It has a box that can be selected freely,How could I set all the classes,and plaese give your codes ,Thanks sincerely,your qt friends~~Guoguo

12th April 2009, 10:33
do you need to check all children programmaticaly? if yes, then read this (http://www.qtcentre.org/forum/p-custom-context-menu-in-qtreeview-post97832/postcount4.html).