[Qt-qml] QML element initialization

michael.brasser at nokia.com michael.brasser at nokia.com
Tue Aug 24 03:20:35 CEST 2010


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 reproduce, so I've added http://bugreports.qt.nokia.com/browse/QTBUG-13114.

> Wouldn't it be better if the parent was set (if it's not null) before
> classBegin() in all cases to avoid corner cases like the above? This
> would ease the port of several libraries that have the same hierarchy
> dependency.

I don't know the answer to this one; you may want to add a suggestion in JIRA so it isn't forgotten.

Thanks,
Michael





More information about the Qt-qml mailing list