Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. unable to save type 'QObject*' (type id: 39)
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 851 Views 1 Watching
  • 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 Offline
    O Offline
    oivanov
    wrote on 16 Feb 2016, 13:42 last edited by
    #1

    "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
    0
    • J Offline
      J Offline
      jpnurmi
      wrote on 28 Feb 2016, 20:19 last edited by
      #2

      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
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved