I have declared a QML-accessible list property of QObject derived types, and in form without 'const' it works fine:
Q_PROPERTY(QQmlListProperty<QObjectDerived> items READ items NOTIFY updated)
But with 'const' modifier:
Q_PROPERTY(QQmlListProperty<const QObjectDerived> items READ items NOTIFY updated)
there is unregistered type error on QML side.
Is it feasable somehow to use the second variant?
P.S. I'm using so-called const-propagation, so need to return const-pointers in the list.
You need to call Test::registerQml() in your main