Re: [Interest] QtQuick Controls2 : Does StackView garbage collect popped items ?

2018-02-24 Thread Jason H
Yes. My soution predates that. You should use StackLayout.   Sent: Saturday, February 24, 2018 at 4:15 AM From: "jack ma" To: "Jason H" Cc: "Fabrice Salvaire" , interest Subject: Re: [Interest] QtQuick Controls2 : Does StackView garbage collect popped ite

Re: [Interest] QtQuick Controls2 : Does StackView garbage collect popped items ?

2018-02-24 Thread ekke
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

Re: [Interest] QtQuick Controls2 : Does StackView garbage collect popped items ?

2018-02-24 Thread 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. what we should use is StackLayout ? 2018-02-24 11:06 GMT+08:00 Jason H : > I would certainly hope so as I've written apps to dynamically manage the > stackview a

Re: [Interest] QtQuick Controls2 : Does StackView garbage collect popped items ?

2018-02-23 Thread Jason H
I would certainly hope so as I've written apps to dynamically manage the stackview and any user using the app for a few iterations would likely run out of memory.   Note that memory mangement in QML is voodoo, and as a result, the actual destruction is not deterministic. If you need to access pop