Well, as I posted on the first post it's a slot which calls
Qt Code:
emit commitData(qobject_cast<QWidget *>(sender()));To copy to clipboard, switch view to plain text mode
EDIT : Yes, it's a slot![]()
Well, as I posted on the first post it's a slot which calls
Qt Code:
emit commitData(qobject_cast<QWidget *>(sender()));To copy to clipboard, switch view to plain text mode
EDIT : Yes, it's a slot![]()
Coding for Actionaz 3
Yeah, but it doesn't make much sense, as the line edit is not the editor.
Huh, that is true![]()
Ok, I will look how to use the event filter.
Coding for Actionaz 3
It is probably a noobish question, but how do I installEventFilter within createEditor, because since createEditor is const, calling myLineEdit->installEventFilter(this) produces an error...
I doesn't know why it is so complicated to put a simple QComboBox into a cell
Anyway, I tested with having persistent editors : it seems to work, but the method of showing an editor when needed is much better...
Coding for Actionaz 3
You have to cheat using const_cast(). You can take a look at the implementation of QItemDelegate and the factory class it uses to see how it is internally implemented. With all the event filters and stuff.
I will look at it, thanks![]()
Coding for Actionaz 3
Excuse me, may be it's easy, but what is CustomRoles?
Bookmarks