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. Cloning a QDeclarativeItem (preserving bindings of original)
Forum Updated to NodeBB v4.3 + New Features

Cloning a QDeclarativeItem (preserving bindings of original)

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 1.0k 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.
  • B Offline
    B Offline
    b.roth
    wrote on last edited by
    #1

    Hello all,

    is there any possibility to create a "clone" from a given QDeclarativeItem that does not lose its bindings?

    What I want to do is the following:
    I have an application with lots of components on different tabs and want the user to select specific components to be opened as a copy in another window (i.e. another QGraphicsView with a new Scene but in the same engine and context) and therefor I would have to keep the bindings to certain context properties of the original object intact for the new one to work as expected.
    But after doing quite some research I did not find a solution for this, as it seems (at least to me) that everything on the C++ side is quite limited (see QDeclarativeProperty).

    Any suggestions?

    Greets,
    Bernhard

    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