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

2014-09-30 Thread BogDan
[..] IMHO deleting first the QML singletons then the rest of the Active objects is also wrong, because some of the active objects might need these singletons. I think the right way is to delete all the active objects first, then QML singletons, try delete again all the

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

2014-09-29 Thread Simon Hausmann
On Wednesday 24. September 2014 23.10.01 BogDan wrote: [...] Hi, Do we all agree that the singletons, by definition, must be available to any object at any time until the end of the application? Yes, with emphasis on until. Note that we are now talking about the end of the application

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

2014-09-29 Thread Harri Porten
On Mon, 29 Sep 2014, Simon Hausmann wrote: Yes, with emphasis on until. Note that we are now talking about the end of the application situation, so our agreement ends right there ;-). We are talking about the time the QQmlEngine destructor is executed, which from a QML engine perspective is

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

2014-09-29 Thread Simon Hausmann
On Monday, September 29, 2014 04:16:05 PM Harri Porten wrote: On Mon, 29 Sep 2014, Simon Hausmann wrote: Yes, with emphasis on until. Note that we are now talking about the end of the application situation, so our agreement ends right there ;-). We are talking about the time the QQmlEngine

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

2014-09-25 Thread BogDan
: Monday, September 22, 2014 11:56 AM Subject: Re: SV: [Development] [QML] Singletons are deleted before the otherobjects On Monday 22. September 2014 01.33.14 BogDan wrote: On Monday 22. September 2014 01.19.17 BogDan wrote: Hi Simon, I took a look and I'm pretty sure I'm right

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

2014-09-24 Thread Simon Hausmann
AM Subject: Re: SV: [Development] [QML] Singletons are deleted before the other objects On Monday 22. September 2014 01.33.14 BogDan wrote: On Monday 22. September 2014 01.19.17 BogDan wrote: Hi Simon, I took a look and I'm pretty sure I'm right ;-). BTW I'm using 5.4 branch (sha1

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

2014-09-22 Thread Knoll Lars
I tend to agree. Sounds like a bug to me. Cheers, Lars On 19/09/14 14:37, BogDan bog_dan...@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

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

2014-09-22 Thread Hausmann Simon
: Chris Adams Sendt: 05:45 mandag 22. september 2014 Til: BogDan Kopi: Qt Development Group Emne: Re: [Development] [QML] Singletons are deleted before the other objects Hi, On Fri, Sep 19, 2014 at 10:37 PM, BogDan bog_dan...@yahoo.commailto:bog_dan...@yahoo.com wrote: Hello folks, Singletons

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

2014-09-22 Thread BogDan
Adams chris.ad...@qinetic.com.au; BogDan bog_dan...@yahoo.com Cc: Qt Development Group development@qt-project.org Sent: Monday, September 22, 2014 9:33 AM Subject: SV: [Development] [QML] Singletons are deleted before the other objects Hi, In gener‎al I agree with Chris. However I'm

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

2014-09-22 Thread Simon Hausmann
On Monday 22. September 2014 01.19.17 BogDan wrote: Hi Simon, I took a look and I'm pretty sure I'm right ;-). BTW I'm using 5.4 branch (sha1 f9ee33f96), is a little bit old, but I bet nobody fixed it. The same problem is in previous releases. So, the singletons are deleted in

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

2014-09-22 Thread BogDan
On Monday 22. September 2014 01.19.17 BogDan wrote: Hi Simon, I took a look and I'm pretty sure I'm right ;-). BTW I'm using 5.4 branch (sha1 f9ee33f96), is a little bit old, but I bet nobody fixed it. The same problem is in previous releases. So, the singletons are deleted in

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

2014-09-22 Thread Simon Hausmann
On Monday 22. September 2014 01.33.14 BogDan wrote: On Monday 22. September 2014 01.19.17 BogDan wrote: Hi Simon, I took a look and I'm pretty sure I'm right ;-). BTW I'm using 5.4 branch (sha1 f9ee33f96), is a little bit old, but I bet nobody fixed it. The same problem is in previous

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

2014-09-22 Thread BogDan
are deleted before the other objects On Monday 22. September 2014 01.33.14 BogDan wrote: On Monday 22. September 2014 01.19.17 BogDan wrote: Hi Simon, I took a look and I'm pretty sure I'm right ;-). BTW I'm using 5.4 branch (sha1 f9ee33f96), is a little bit old, but I bet nobody fixed

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

2014-09-22 Thread Jonathan Liu
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

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

2014-09-21 Thread Chris Adams
Hi, On Fri, Sep 19, 2014 at 10:37 PM, BogDan bog_dan...@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

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

2014-09-19 Thread BogDan
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