how to add a combo box and a text box inside a tree widget?
Is there any possibility of adding a text box and a combo box inside a tree widget as child of the root…
If so please tell me how can i achieve that?
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.