QStyledItemDelegate alternative for QML
-
I looked at the QML
TableView.delegate
documentation 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 executeisinstance
in JS?
Is there a way I can "register" a delegate forIntEnum
like I can do withQStyledItemDelegate
?