<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p><font size="-1"><font face="Courier New, Courier, monospace">Hello everybody !</font></font></p>
<p><font size="-1"><font face="Courier New, Courier, monospace">I can't figure out how to go back to the main page of an app and clear the stack of pages. Let me explain:</font></font></p>
<p><font size="-1"><font face="Courier New, Courier, monospace">I've a main page, by selecting a menu entry push a page (lets call it page1). On this page1, calling a certain action, push another page (call it page2, it is a dialog page) on the stack.</font></font></p>
<p><font size="-1"><font face="Courier New, Courier, monospace">So in the stack, I have the following pages: [MainPage, Page1, Page2]
</font></font></p>
<p><font size="-1"><font face="Courier New, Courier, monospace">But now, from page2, I want to go back to MainPage. So I did this first in the page2 code :</font></font></p>
<font face="Monospace"> onAccepted: {<br>
pageStack.pop()<br>
</font><font face="Courier New, Courier, monospace"><font
face="Monospace"> }</font></font><font size="-1"><font
face="Courier New, Courier, monospace"><br>
<br>
But: </font></font><br>
<meta name="qrichtext" content="1">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><!--StartFragment--><span style=" font-family:'Monospace'; font-size:9pt; color:#aa0000;">Warning: cannot pop while transition is in progress</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Monospace'; font-size:9pt; color:#aa0000;">
</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><font size="-1"><font face="Courier New, Courier, monospace">Ok, so I tried this instead:</font></font></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><font size="-1"><font face="Courier New, Courier, monospace">
</font></font></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><font face="Monospace"> acceptDestination: Qt.resolvedUrl("MainPage.qml")
acceptDestinationAction: PageStackAction.Pop</font></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">
</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><font size="-1"><font face="Courier New, Courier, monospace">Still: </font></font>
<span style=" font-family:'Monospace'; font-size:9pt; color:#aa0000;">Warning: cannot pop while transition is in progress</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Monospace'; font-size:9pt; color:#aa0000;">
</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><font size="-1"><font face="Courier New, Courier, monospace">And doing this:</font></font></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">
<font face="Monospace"> onAccepted: {
pageStack.pop(null, false)
</font><font face="Courier New, Courier, monospace"><font face="Monospace"> }</font></font><font size="-1"><font face="Courier New, Courier, monospace">
</font></font></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><font size="-1"><font face="Courier New, Courier, monospace">Is working in term of results, but before going to the main page I see the page2 for a little while.
</font></font></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><font size="-1"><font face="Courier New, Courier, monospace">
</font></font></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><font size="-1"><font face="Courier New, Courier, monospace">So, I should miss something here for sure. Any ideas or recommendation ? Maybe am I bad designing the navigation in the app ?</font></font></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><font size="-1"><font face="Courier New, Courier, monospace">
</font></font></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><font size="-1"><font face="Courier New, Courier, monospace">Thanks a lot !</font></font></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><font size="-1"><font face="Courier New, Courier, monospace">
</font></font></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><font size="-1"><font face="Courier New, Courier, monospace">Regards,</font></font></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><font size="-1"><font face="Courier New, Courier, monospace">
</font></font></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><font size="-1"><font face="Courier New, Courier, monospace">Fab</font></font>
</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><!--EndFragment--></p>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
p, li { white-space: pre-wrap; }
</style>
</body>
</html>