Re: [Qt-qml] QML element initialization

2010-08-23 Thread michael.brasser
Hi, On 17/08/2010, at 7:06 AM, ext Adriano Rezende wrote: To create wb2 object, classBegin() is called twice; in the first call parent is null, in the second call parent is not null (probably this is a bug). Yes, this is a bug -- classBegin() should only be called once. It was trivial to

[Qt-qml] QML element initialization

2010-08-16 Thread Adriano Rezende
Hi, While porting a library to QML, I've got into the following situation: I have wrapper classes WA and WB that are QDeclarativeItems. These classes have internal pointers to the library objects NA and NB, respectively. NA is a factory for NB objects (NB constructors are protected). So to