[Interest] Overriding list properties in QML at initialisation

Unai IRIGOYEN u.irigoyen at gmail.com
Wed Aug 14 23:45:05 CEST 2019

Hi Giuseppe,
When you say the QML APIs for Qt3D depend on this behaviour, you are
talking about appending to the default property right? Or are the APIs
depending in the fact that every QQmlListProperty has its contents
concatenated (I can't recall an example where this could be used)?

Best regards,


Le mer. 14 août 2019 à 18:23, Giuseppe D'Angelo via Interest <
interest at qt-project.org> a écrit :

> Il 14/08/19 11:23, Ulf Hermann ha scritto:
> >> 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.
> This behaviour cannot be changed in a source-compatible way, so it's a
> no-go, unless we also add additional C++/QML syntax for opting in to the
> new behaviour. E.g. the QML APIs for Qt3D massively depend on this.
> My 2 c,
> --
> Giuseppe D'Angelo | giuseppe.dangelo at kdab.com | Senior Software Engineer
> KDAB (France) S.A.S., a KDAB Group company
> Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
> KDAB - The Qt, C++ and OpenGL Experts
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> https://lists.qt-project.org/listinfo/interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20190814/39a7c510/attachment.html>

More information about the Interest mailing list