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. Save and restore anchors.

Save and restore anchors.

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
qmlanchors
2 Posts 2 Posters 235 Views
  • 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
    MintogoDeveloper
    wrote on last edited by
    #1

    Hello

    I'm looking for way to save and restore anchor of QML Item.

    Since I want to use one QML Item 'A' on variety position such as..

    Move 'A' to 'B' and after use restore 'A' previous parent and anchors.

    is it possible?

    I tried it with [property var], but when restore anchors, [cannot anchor to an item that isn't a parent or sibling] error displayed.

    1 Reply Last reply
    0
    • MarkkyboyM Offline
      MarkkyboyM Offline
      Markkyboy
      wrote on last edited by
      #2

      Without seeing any of your code, I would guess for you to try with https://doc.qt.io/qt-5/qml-qtquick-state.html

      For quicker, better quality results, always post working snippets of your code if you can!

      Don't just sit there standing around, pick up a shovel and sweep up!

      I live by the sea, not in it.

      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