Re: [Development] QQmlListProperty: static_assert that T inherits QObject

2017-01-27 Thread Milian Wolff
On Friday, January 27, 2017 4:49:15 PM CET Simon Hausmann wrote: > Hi, > > > Regarding the question about why the engine itself uses > QQmlListProperty internally when populating list properties during instantiation, I think you've already found the answer yourself: Because of interface types :

Re: [Development] QQmlListProperty: static_assert that T inherits QObject

2017-01-27 Thread Simon Hausmann
to suddenly break their build when upgrading to a new version of Qt. Simon From: Development on behalf of Milian Wolff Sent: Friday, January 27, 2017 12:20:46 AM To: qt-dev Subject: [Development] QQmlListProperty: static_assert that T inherits QObject He

[Development] QQmlListProperty: static_assert that T inherits QObject

2017-01-26 Thread Milian Wolff
Hey all, the QQmlListProperty states: "Note: QQmlListProperty can only be used for lists of QObject-derived object pointers." Since I am bad at reading documentation, I previously tried (I think multiple times) to do something like: QQmlListProperty or even QQmlListProperty This happily co