Warning: StackView: cannot transition an item that is anchored! Why?
-
Hello!
I've got this warning in logs:StackView: cannot transition an item that is anchored!I've never been having this kind of troubles before. Is there any manuals to read about it? I mean about this waring. For me isn't clear right now about which items shouldn't be anchored.
import QtQuick 2.15 import QtQuick.Controls 1.4 SScreenContentTemplate { id: oRoot; color: oApplicationWindow.pColorBackground; StackView { id: oStackView; width: parent.width; height: parent.height; anchors.top: parent.top; anchors.bottom: parent.bottom; anchors.left: parent.left; anchors.right: parent.right; Component.onCompleted: { oStackView.push(oScreenLogin); } Component {id: oScreenLogin; SScreenLogin {}} Component {id: oScreenSearch; SScreenSearch {}} Component {id: oScreenRegister; SScreenRegister {}} Component {id: oScreenMainMenu; SScreenMainMenu {}} Component {id: oScreenTest; SScreenTest {}} delegate: StackViewDelegate { function transitionFinished(inProperties) { inProperties.exitItem.opacity = 1; } pushTransition: StackViewTransition { PropertyAnimation { target: enterItem; property: "opacity"; from: 0; to: 1; } PropertyAnimation { target: exitItem; property: "opacity"; from: 1; to: 0; } } } } function onSgOrientationChanged(inOrientation) {} }Which anchors should be dleted?