Restore anchors.verticalCenter
QML and Qt Quick
6
Posts
4
Posters
5.2k
Views
1
Watching
-
Hi, I'm rotating elements in my app, I set
@PropertyChanges { target: txtOrg; anchors.verticalCenter: btn0.verticalCenter }@when in Landscape, it center my component txtOrg, but when I rotate to portrait btn0 it's not next to txtOrg, so I have to clear the anchor and let it rellocate, I use this for portrait
@PropertyChanges { target: txtOrg; anchors.verticalCenter: undefined}@
but when I try to do it, it doesn't return to the original state and I get the output @QML TextArea: Cannot anchor to a null item.@
Thanks!