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

Knoll Lars Lars.Knoll at digia.com
Mon Sep 22 08:27:36 CEST 2014


I tend to agree. Sounds like a bug to me.

Cheers,
Lars

On 19/09/14 14:37, "BogDan" <bog_dan_ro at yahoo.com> 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



More information about the Development mailing list