Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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