Re: [Development] QQmlEngine and ObjectOwnership

2015-04-28 Thread Alberto Mardegan
Hi Massimo, On 04/28/2015 07:46 AM, Massimo Callegari wrote: > I just wanted to share my specific(?) case so if someone stumbles on it, they > can find the solution out of the box :) I also stumbled on this problem once. Luckily, the documentation is quite clear on this -- the problem is that i

Re: [Development] QQmlEngine and ObjectOwnership

2015-04-28 Thread Massimo Callegari
hty dragons ! :) Massimo - Messaggio originale - Da: Bo Thorsen A: Massimo Callegari ; "development@qt-project.org" Cc: Inviato: Martedì 28 Aprile 2015 14:25 Oggetto: Re: [Development] QQmlEngine and ObjectOwnership On 04/28/2015 12:08 PM, Massimo Callegari wrote: &g

Re: [Development] QQmlEngine and ObjectOwnership

2015-04-28 Thread Bo Thorsen
On 04/28/2015 12:08 PM, Massimo Callegari wrote: > Hi everyone, > > I want to share my experience with the garbage collection of registered > classes through qmlRegisterType. > > I got crazy to understand why my application was randomly crashing and I hope > this will help others in the future. >

Re: [Development] QQmlEngine and ObjectOwnership

2015-04-28 Thread Massimo Callegari
: "development@qt-project.org" Inviato: Martedì 28 Aprile 2015 12:21 Oggetto: Re: [Development] QQmlEngine and ObjectOwnership Hello Massimo, I got crazy last year for the same reason … and one developer drive me in the right direction and solved the problem in a slightly different way of y

Re: [Development] QQmlEngine and ObjectOwnership

2015-04-28 Thread Gianluca
Hello Massimo, I got crazy last year for the same reason … and one developer drive me in the right direction and solved the problem in a slightly different way of you. In my code, sometimes the object is created from QML side … and sometimes is created from C++. In these situations, the ideal be

[Development] QQmlEngine and ObjectOwnership

2015-04-28 Thread Massimo Callegari
Hi everyone, I want to share my experience with the garbage collection of registered classes through qmlRegisterType. I got crazy to understand why my application was randomly crashing and I hope this will help others in the future. Basically if you want to expose a C++ class in the QML world,