[Interest] QtQuick Controls2 : Does StackView garbage collect popped items ?
Fabrice Salvaire
fabrice.salvaire at orange.fr
Fri Feb 23 22:58:55 CET 2018
Dear all,
I am experimenting a way to implement a wizard interface featuring a
next and previous page navigation using QtQuick Controls 2.
I tried to achieve this using StackView but I receive the error
"TypeError: Type error' when I try to access popped items later, for
example using console.info(popped_item_array)
It looks like a kind of garbage collection of the Qt object returned by
push and pop. But I could not figure out any explanation of this
behaviour on the Qt doc
https://doc-snapshots.qt.io/qt5-5.11/qml-qtquick-controls2-stackview.html
However the older implementation had a destroyOnPop feature cf.
http://doc.qt.io/qt-5/qml-qtquick-controls-stackview.html
Cheers,
Fabrice
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20180223/ed5744d5/attachment.html>
More information about the Interest
mailing list