Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
5.15.0, 6.0.0
-
-
5a908de8b7e772e78adb30cc3205c7cf5bd622f5
Description
When a struct is marked with `Q_GADGET`, we are able to return a value from a function and assign it to a `property var` type, but we cannot declare `property MyCustomGadget`.
See attached minimal sample.
Window { id: root property ValueType vt property var vt2 width: 500 height: 500 visible: true Component.onCompleted: { console.log(root.vt) // Prints null } Playground { id: pl } Button { text: "10" onClicked: { // Doesn't work root.vt = pl.value() // Works root.vt2 = pl.value() } } }