PDA

View Full Version : different column widgets in trees or tables



fulbay
5th October 2010, 16:19
Hello,

I want to implement a table or tree widget, which has cells having different kinds of widgets, I mean, for example, one column has combobox, one column has line edit, another one has spinbox in its cells. Not all the cells in the table will be line edit.

How can I implement it? I know about view->setModel(model), however this makes all of the cells of the table having another kind of widgets, like combobox or spinbox.

Your help is very welcome.

fulbay
6th October 2010, 16:28
I have found it out :)

If anyone tries, the usage of setItemWidget() function will solve this issue.