Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.0.0
-
None
-
cc688cc0cc4f5d4fc8f01411798872205df1d59c
Description
If a variant property is used to store a value type value, write-back semantics for subproperty changes are not implemented.
import QtQuick 2.0 Item { property variant v1: Qt.vector3d(1,2,3) property variant v2: Qt.vector3d(4,5,6) Component.onCompleted: { v1.x = 8 v2.x = 9 console.log(v1 + ", " + v2) // expect: QVector3D(8, 2, 3), QVector3D(9, 5, 6) // result: QVector3D(1, 2, 3), QVector3D(4, 5, 6) } }