QStyledItemDelegate alternative for QML
-
I looked at the QML
TableView.delegatedocumentation and it doesn't mention how I could control what delegate is used based on my data type. I basically need a ComboBox to show a list of choices if my model data has a PythonIntEnum.
I have a slight idea that some JS code would be involved here, but how can I executeisinstancein JS?
Is there a way I can "register" a delegate forIntEnumlike I can do withQStyledItemDelegate?