Save and restore anchors.
Unsolved
QML and Qt Quick
-
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.
-
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!