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?