1
votes

I have a QStandardItemModel which I display using a TableView in Qml. The data should be editable, and depending on the type of the data I would like to have different delegates, e.g. for a bool value a checkbox, for a string value a drop-down box of possible values. How could this be achieved?

1

1 Answers

3
votes

Just have a Loader that creates a different qml component depending on the model data.