StackView, "pop" a page by swiping
-
Hi all,
I'm developing a QML UI mobile application using a StackView.
I add a page with "push" command and I go "back" with "pop" command.At the moment I go back in the StackView using a Button:
onClicked: {
stack.pop();
}Now I'd like to obtain the same result by swiping on the touch screen.
If you know Sailfish OS it's what Silica UI do when you go to setting and than go back with a swipe.
A workaround should be to use a ListView instead of the StackView.Is it possible with StackView?
Thanks
Luca
-
@p3c0 No need to push because I push a new item in my stack by clicking something on the page.
But I 'd like to have a "pop" by swiping to go to previous item in the stack. The problem is that the graphic effect should be as in a "carousel" list view when going back. -
@luca You can create your own effect using Transitions.