I would like to register a QItemEditorCreatorBase that would handle properties represented as Q_ENUMS by presenting a QComboBox with a list of possible enum values represented as strings.
I know how to make the QItemEditorCreatorBase but can't work out how to do the registration.
QItemEditorFactory::registerEditor takes a QVariant::Type but how do I get a QVariant type id for an enum? I've tried a few things but got nowhere.
Any help very gratefully received.
Bookmarks