PDA

View Full Version : How to add a checkBox to the headerItem of QTreeWidget



candela
20th August 2009, 04:10
hi:
I want to add a checkbox to the headerItem of QTreeWidget.just like this:
http://www.qtcentre.org/forum/attachment.php?attachmentid=3594&stc=1&d=1250737681

Thanks for aamer4yu's reply!!! He suggested me to subclass QHeaderView and implement my own checkbox. but I want to know whether there is an easyier way to reach this.

Could you give me some helps?Thans a lot!!

aamer4yu
20th August 2009, 05:31
QTreeWidgetItem::setCheckState

EDIT: Sorry,, didnt realise fast that it was header .
For that I guess you will need to subclass QHeaderView and implement your own checkbox.