[Development] Problem with QML garbage collection (Qt 5.15)

Alberto Mardegan mardy at users.sourceforge.net
Mon May 2 12:55:14 CEST 2022

Hi Fabian,

On 02/05/22 09:52, Fabian Kosmale wrote:
> I think your issue might be QTBUG-91390 (ListModel does not keep
> objects with JS ownership alive in 5.15). That was fixed in Qt 6.2
> (https://codereview.qt-project.org/c/qt/qtdeclarative/+/354140), but
> due to the behaviour change never backported to any version of 5.15.

I see, thanks for the pointers! In my current case setting the ownership 
to C++ is acceptable (in any case, the model would be alive for the 
whole lifetime of the application, so it does not make a practical 
difference), but it good to know that there's a solution for those who 
strongly need it.


http://www.mardy.it - Geek in un lingua international

More information about the Development mailing list