[Interest] Overriding list properties in QML at initialisation
u.irigoyen at gmail.com
Thu Aug 15 00:26:47 CEST 2019
I reported the bug here: https://bugreports.qt.io/browse/QTBUG-77529
I will try to propose a fix which has no side effect on Qt3D.
Le mer. 14 août 2019 à 11:25, Ulf Hermann <ulf.hermann at qt.io> a écrit :
> > If I create a class with a QQmlListProperty and then initialise it with
> > an array in some QML file, then subclass the QML type in a second QML
> > file and try to override the array there, when creating an instance of
> > the child class, the list contains the arrays concatenated instead of
> > the overriding array.
> That's the expected behavior of the default property, e.g. children in
> QQuickItem. Arguably, it should not extend to explicitly setting any
> other list properties.
> > In the following example, I would expect the list to contain 2 elements
> > instead of 5. What are your thoughts? Should I fill a bug report and try
> > to provide a fix?
> Yes, that would be nice. Keep in mind that the default property should
> still behave the old way, but only if you actually use it as default
> property. The details can be discussed in the report, though.
> best regards,
> Interest mailing list
> Interest at qt-project.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Interest