Am 24.02.18 um 10:15 schrieb jack ma:
> It seems that StackView instantiate QML components when push and
> destroy it when pop, so we cann't get information from previous page.
you have access to the Page before it will be destroyed.
All my Pages have a name property so I can check which Page it is
per ex:

// StackView
function popOnePage() {
    var page = pop()
    if(page.name === "MyAddressPage") {
        // access to properties
        var d = page.theCity
        // access to functions
        var x = page.getData()
        return
    }
}


ekke

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to