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. Clone item from ObjectModel
Forum Updated to NodeBB v4.3 + New Features

Clone item from ObjectModel

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
qmlitemmodel
1 Posts 1 Posters 338 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.
  • M Offline
    M Offline
    MasterBLB
    wrote on 7 Sept 2021, 07:26 last edited by MasterBLB 9 Jul 2021, 07:26
    #1

    Hi mates

    I have an ObjectModel then I get an item using model.get(someIndex). Now my question is - how to clone the item, and display freshly created one in other place? loader.sourceComponent = itemFromModel; returns Error: Cannot assign QObject* to QQmlComponent*, while Qt.createQmlObject() and Qt.createComponent() are unsuitable for the task. I'm out of ideas what I can use.

    1 Reply Last reply
    0

    1/1

    7 Sept 2021, 07:26

    • Login

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