How to add a combo box and a text box inside a tree widget?
-
What do you mean by "dynamically"?
You will have to understand that setIndexWidget is not really all that model-view oriented. The widget contents are not updated with the model, and there are no automatic creation of new widgets for new items or removal of widgets for deleted items. That is not so much a problem for a static model, but there is quite a bit of coding involved to make the widgets change with a changing model.
-
Of course that is possible, but it will require additional coding by you. Every time you add items, you will also need to add the corresponding widgets at the right index. It is not going to be trivial to get this right, I think. Perhaps subclassed QTreeWidgetItem's can work.
-
-
i didnt understand how to upload photo here....so uploaded in picassa...plz follow here-->https://picasaweb.google.com/dilip.sn/January32012#5693356856945547426