I have a QML (Felgo) application and I would like to pass parameter to the previous page of the stack in navigationStack when popping. I would like to populate "myVar" property of Page2.qml (which is '0' by default) with the value '1' passed from Page3 when I call pop() in the Page3.qml. The example code is shown below. I tried that code but it doesn't work. What am I doing wrong? Thanks for all.
main.qml
Page1.qml
Page2.qml
Page3.qml




I created the following code snippet that has the following features:
Main.qmlhosts aListModelPage1.qmlis able to use theListModelin aListViewsince it sees becausePage1.qmlwas pushed intoMain.qml'sStackViewand has inherits access to everything inMain.qmlPage2.qmldoes nothing except provide navigation to eitherPage1.qmlorPage3.qmlPage3.qmlprovides navigation back toPage2.qmlas well as emitting a signal toMain.qmlreceives to update the ListModelPage1.qml,Page2.qmlandPage3.qmlall emit signals which are handled inMain.qmlHere's the code snippet:
You can Try it Online!