Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
5.13.0
-
None
-
Linux i7-2720QM 5.2.5-arch1-1-ARCH #1 SMP PREEMPT Wed Jul 31 08:30:34 UTC 2019 x86_64 GNU/Linux
Description
If you instantiate a Q_GADGET instance as a child of a QQuickItem instance, you will receive this message:
qrc:main.qml:77:5: Cannot assign object to list property "data"
Example is here:
https://github.com/user1095108/quickquake/blob/master/gui/glquake.hpp
Just change Q_OBJECT to Q_GADGET.
Attachments
Issue Links
- is duplicated by
-
QTBUG-54983 Create Q_GADGET objects in QML
- Closed