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 a

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 Q

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 perspecti

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 applicat

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

2014-09-24 Thread BogDan
- Original Message - From: Simon Hausmann To: BogDan Cc: Chris Adams ; Qt Development Group Sent: Thursday, September 25, 2014 8:34 AM Subject: Re: SV: [Development] [QML] Singletons are deleted before the other objects On Monday, September 22, 2014 02:28:06 AM BogDan wrote

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

2014-09-24 Thread Simon Hausmann
On Monday, September 22, 2014 02:28:06 AM BogDan wrote: > - Original Message - > From: Simon Hausmann > To: BogDan > Cc: Chris Adams ; Qt Development Group > Sent: Monday, September 22, 2014 11:56 AM > Subject: Re: SV: [Development] [QML] Singletons are deleted

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-22 Thread BogDan
- Original Message - From: Simon Hausmann To: BogDan Cc: Chris Adams ; Qt Development Group Sent: Monday, September 22, 2014 11:56 AM Subject: Re: SV: [Development] [QML] Singletons are deleted before the other objects On Monday 22. September 2014 01.33.14 BogDan wrote: >

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 i

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 QQ

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 QQml

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

2014-09-22 Thread BogDan
BogDan Cc: Qt Development Group 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 a little puzzled that this is happening. If you take a look at the QQmlEngine de

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

2014-09-21 Thread Hausmann Simon
Simon Fra: 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 mailto:bog_dan...@yahoo.com>> wrote: Hello folks, Singletons

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

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

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 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 dest

[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

Re: [Development] QML Singletons

2012-12-11 Thread Mohamed Fawzi
med=digia@qt-project.org [development-bounces+fawzi.mohamed=digia@qt-project.org] on behalf of Alan Alpert [4163654...@gmail.com] Sent: Tuesday, December 11, 2012 5:22 PM To: Hartmann Thomas Cc: ; Knoll Lars Subject: Re: [Development] QML Singletons On Tue, Dec 11, 2012 at 1:52 AM, Tho

Re: [Development] QML Singletons

2012-12-11 Thread Alan Alpert
On Tue, Dec 11, 2012 at 1:52 AM, Thomas Hartmann wrote: > Am 11/12/2012 10:23, schrieb Knoll Lars: > > Hi, > > it's a bit weird that you need a qmldir for that. Wouldn't it be better if we could mark this as singleton in the implementation (ie. inside single.qml)? Maybe use a new

Re: [Development] QML Singletons

2012-12-11 Thread Thomas Hartmann
Am 11/12/2012 10:23, schrieb Knoll Lars: Hi, >>> it's a bit weird that you need a qmldir for that. Wouldn't it be better if >>> we could mark this as singleton in the implementation (ie. inside >>> single.qml)? Maybe use a new keyword for that? static is already a reserved >>> keyword in Ecma

Re: [Development] QML Singletons

2012-12-11 Thread Mark
On Tue, Dec 11, 2012 at 10:18 AM, Thomas Hartmann wrote: > Hi, > >> >> it's a bit weird that you need a qmldir for that. Wouldn't it be better if >> we could mark this as singleton in the implementation (ie. inside >> single.qml)? Maybe use a new keyword for that? static is already a reserved >

Re: [Development] QML Singletons

2012-12-11 Thread Knoll Lars
On Dec 11, 2012, at 10:18 AM, Thomas Hartmann wrote: > Hi, > >> >> it's a bit weird that you need a qmldir for that. Wouldn't it be better if >> we could mark this as singleton in the implementation (ie. inside >> single.qml)? Maybe use a new keyword for that? static is already a reserved

Re: [Development] QML Singletons

2012-12-11 Thread Thomas Hartmann
Hi, > > it's a bit weird that you need a qmldir for that. Wouldn't it be better if we > could mark this as singleton in the implementation (ie. inside single.qml)? > Maybe use a new keyword for that? static is already a reserved keyword in > Ecmascript 5.1, so we could maybe write single.qml as

Re: [Development] QML Singletons

2012-12-11 Thread Knoll Lars
On Dec 11, 2012, at 4:55 AM, Alan Alpert <4163654...@gmail.com> wrote: > Qt 5 gains this great new qmlRegisterSingletonApi function for > exposing global functionality from C++. This is great but sometimes > you want to write that global functionality in QML instead of C++. Use > cases that come

[Development] QML Singletons

2012-12-10 Thread Alan Alpert
Qt 5 gains this great new qmlRegisterSingletonApi function for exposing global functionality from C++. This is great but sometimes you want to write that global functionality in QML instead of C++. Use cases that come to mind include UI constants and a fake business logic backend when prototyping.