Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.12.3
-
None
-
b1e9bc580adc1e7b3b1398f392016880dc5201ba (qt/qtdeclarative/5.12)
Description
in these pages:
https://doc.qt.io/qt-5/qml-qtqml-component.html
and
https://doc.qt.io/qt-5/qtqml-javascript-dynamicobjectcreation.html
the quotes in the second arugment aren't needed :
component.createObject(parent, {"x": 100, "y": 100});
and
component.createObject(parent, {x: 100, y: 100});
work similarly (but the second is prettier).