Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

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

    QML and Qt Quick
    2
    2
    620
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • O
      oivanov last edited by

      "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?

      1 Reply Last reply Reply Quote 0
      • jpnurmi
        jpnurmi last edited by

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

        1 Reply Last reply Reply Quote 0
        • First post
          Last post