Alundra
31st May 2014, 20:46
Hi all,
I have a QTreeView with 2 column name and editor.
I used QItemDelegate, but the problem is the editor is not always visible, you have to click one time.
I already know the way "reimplement paint()" but you have to enable the cell.
I saw in documentation this function : setIndexWidget, is it safe to use it ?
My goal is to have the widget always visible never has to enable it.
Thanks for the help.
--
EDIT: Maybe I have bad understand really and using this function will give me the same result I got with paint() ?
I have a QTreeView with 2 column name and editor.
I used QItemDelegate, but the problem is the editor is not always visible, you have to click one time.
I already know the way "reimplement paint()" but you have to enable the cell.
I saw in documentation this function : setIndexWidget, is it safe to use it ?
My goal is to have the widget always visible never has to enable it.
Thanks for the help.
--
EDIT: Maybe I have bad understand really and using this function will give me the same result I got with paint() ?