kossmoboleat
13th February 2012, 18:22
Hello,
I am trying to remodel an existing GUI with Qt Model/Views. I am using a subclass of QTableView and QAbstractItemModel.
Instead of having the usual editor-behavior, I'd like to always show the editors for the items. I got that working by using openPersistentEditors(), but I am not happy with the visual result. In particular the text cursor is still visible on all my fields. I'd like it to disappear to conform to our existing GUI. Is there a way to achieve this with openPersistentEditors()?
Here's what I have:
7401
And this is what I want:
7402
Thank you very much,
Tim
I am trying to remodel an existing GUI with Qt Model/Views. I am using a subclass of QTableView and QAbstractItemModel.
Instead of having the usual editor-behavior, I'd like to always show the editors for the items. I got that working by using openPersistentEditors(), but I am not happy with the visual result. In particular the text cursor is still visible on all my fields. I'd like it to disappear to conform to our existing GUI. Is there a way to achieve this with openPersistentEditors()?
Here's what I have:
7401
And this is what I want:
7402
Thank you very much,
Tim