PDA

View Full Version : QTreeView Problem.



kaushal_gaurav
12th December 2008, 10:29
Hi,

I need to make 1st column of the a TreeView as non editable.
The first column is a checkBox and i just need it is only checkable and nothing can be written besides that checkbox.
Currently when i press tab the cell attains focus and i can write text in that check box cell apart from toggling the state of check box with mouse.

Please see image attached.

Please help.....
GK

caduel
12th December 2008, 10:47
The model of your treeview has to (not) return "editable" in its flags() function when called with an index for column 0.

HTH

ansar
22nd December 2009, 05:55
Hey,

I am having the same problem with treeview.....Is it solved in yours...
Please let me know how to do this .....