Restore anchors.verticalCenter
-
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!
-
Hi,
I'd suggest trying AnchorChanges rather than PropertyChanges, to see if that fixes the issue for you.
Regards,
Michael -
Thanks! it works now
-
[quote author="mbrasser" date="1319000932"]Hi,
I'd suggest trying AnchorChanges rather than PropertyChanges, to see if that fixes the issue for you.
Regards,
Michael[/quote]Helped me too, thanks a bunch! :)
-
[quote author="mbrasser" date="1319000932"]Hi,
I'd suggest trying AnchorChanges rather than PropertyChanges, to see if that fixes the issue for you.
Regards,
Michael[/quote]Helped me too, thanks a bunch! :)
-
Awesome. Thanks for the hint!