Details
-
Bug
-
Resolution: Duplicate
-
P2: Important
-
5.14.1, 6.0, 6.1
Description
I created a QML element like below and got an error.
Invalid property assignment: "children" is a read-only property
namespace Namespace { class SubObject : public QObject { Q_OBJECT }; class Object : public QObject { Q_OBJECT Q_PROPERTY(QQmlListProperty<SubObject> children READ children) Q_CLASSINFO("DefaultProperty", "children") ... }
Please build the project attached. It works well when the default property is children1 (QObject) and if you change the default property to children2 (SubObject), it fails.
Attachments
Issue Links
- duplicates
-
QTBUG-84263 QQmlListProperty doesn't work without fully qualified namespace
- Closed