Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
StackView, "pop" a page by swiping
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:
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?
@luca Well IMO you will need to add your own implemntation of swipe using
@p3c0 Thanks for answer.
That way I can manage the "pop" of StackView but I think the graphic effect isn't the same, I can't "move the screen back" as in a a ListView, I suppose.
@luca If I understood you correctly then,
Swipe left -> push
Swipe right -> pop
@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.