Hi,
In Felgo 3 (Qt 5 with Quick Controls 1) you would use the Qt StackViewDelegate as described here: https://doc.qt.io/qt-5/qml-qtquick-controls-stackview.html#transitions
With Felgo 4 and Qt 6 it works differently. Also, there seems to be a bug that prevents customizing the Felgo 4 StackViewDelegate of NavigationStack.
As a workaround, you can overwrite the delegate transitions after the component was created:
NavigationStack {
id: stackView
Component.onCompleted: {
stackView.transitionDelegate.pushEnter = pushEnterTransition
stackView.transitionDelegate.pushExit = pushExitTransition
stackView.transitionDelegate.popEnter = popEnterTransition
stackView.transitionDelegate.popExit = popEnterTransition
}
Transition {
id: pushEnterTransition
PropertyAnimation {
property: "opacity"
from: 0
to:1
duration: 200
}
}
Transition {
id: pushExitTransition
PropertyAnimation {
property: "opacity"
from: 1
to:0
duration: 200
}
}
Transition {
id: popEnterTransition
PropertyAnimation {
property: "opacity"
from: 0
to:1
duration: 200
}
}
Transition {
id: popExitTransition
PropertyAnimation {
property: "opacity"
from: 1
to:0
duration: 200
}
}
}
Thank you for raising the issue, we will fix it with one of the next updates.
Best,
Günther