enter
4th March 2014, 19:09
10103
Hi all,
I have problem using QTreeView with delegates in a QStandardItemModel model. I used the setItemDelegateForColumn method to apply my delegate to the second column of my QTreeView but it is also applied on the "root" rows column which I don't want. It doesn't seem possible to apply a delegate on a specific number of cells.
I attached a picture to this thread showing my ongoing result. If mya briefly comment it, I would like the <arbiter> row ComboBox delegate to dissapear. What do I have to do in order to get what I want ? Implement a custom Model or a Custom view ?
Ideally I would like to implement the "Property Editor" of QtCreator but I don't know how to do this.
Thanks for your help
Hi all,
I have problem using QTreeView with delegates in a QStandardItemModel model. I used the setItemDelegateForColumn method to apply my delegate to the second column of my QTreeView but it is also applied on the "root" rows column which I don't want. It doesn't seem possible to apply a delegate on a specific number of cells.
I attached a picture to this thread showing my ongoing result. If mya briefly comment it, I would like the <arbiter> row ComboBox delegate to dissapear. What do I have to do in order to get what I want ? Implement a custom Model or a Custom view ?
Ideally I would like to implement the "Property Editor" of QtCreator but I don't know how to do this.
Thanks for your help