textRole [qt-project.org] expects a string so it should be “name”
ReferenceError: modelData is not defined would occur when the Combobox is created (and thus model is set) before the model is actually initialized.
↧