[Development] [QML] Singletons are deleted before the other objects

Jonathan Liu net147 at gmail.com
Mon Sep 22 16:04:23 CEST 2014


On 19/09/2014 10:37 PM, BogDan wrote:
> Hello folks,
>
>    Singletons registered using qmlRegisterSingletonType, are deleted *before*
> the other active objects. I consider it to be wrong because some of the active
> objects may still need to access the singletons in their destructor ...
>
> IMHO singletons should be the very last objects deleted (also in the reverse
> order).
>
> Is there any reason why they are deleted before the other active objects?
> Or this is just a bug?
>
> Cheers,
> BogDan.
>
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development
Would this also be related to 
https://bugreports.qt-project.org/browse/QTBUG-38422?

Regards,
Jonathan



More information about the Development mailing list