unable to save type 'QObject*' (type id: 39)

  • "Warning: QVariant::save: unable to save type 'QObject*' (type id: 39)"

    I get this error every type when I add new string Item to model of ComboBox:
    ComboBox {
    editable: true
    . . .
    model: ListModel { ListElement { text: qsTr ("default item") }
    . . .
    model.insert( 0, {text: editText}) // or append...

    Why so? And what does "type 39" mean?

  • What is 'editText'. Is it an id of an object? Did you mean one of its properties, for instance 'editText.text'?

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.