Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
StackView: custom transition for one item
JeroenDierckx last edited by
I am using Qt Quick Controls 2, and use a StackView to display different screens.
For one screen, I want to use a custom transition when pushing and popping, but for the rest I want to use the default transitions. Is that possible?
I tried creating a child Transition with an id and use a conditional pushEnter:
pushEnter: showingItem ? itemPushEnterTransition : undefined
but I get the error "Unable to assign [undefined] to QQuickTransition*"
Maybe it is better to create a custom view with states instead of a StackView? Then I can carefully model the transitions between them.