Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.7
-
None
-
0b9648e75 (dev), 5bad1a96a (6.7)
Description
Steps: Modify ScatterProperties example to bind properties outside the pointMarker, for example:
pointMarker: Image { property bool selected: false source: "images/happy_box.png" width: selected ? 96 : background.radius height: selected ? 96 : 64 }
And you get error: qrc:/qml/testbed/ScatterProperties.qml:80:17: ReferenceError: background is not defined
With QML Loader and Repeater this works, so you can bind to other elements properties. Is this some simpler fix to create components into correct context / call some componentComplete once created? Or should we utilize "qquickrepeater_p.h" for the correct behavior? Custom bars misbehaves similarly so this is needed in other places too.
Attachments
For Gerrit Dashboard: QTBUG-122169 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
539363,3 | Fix pointMarker context | dev | qt/qtgraphs | Status: MERGED | +2 | 0 |
539534,3 | Fix pointMarker context | 6.7 | qt/qtgraphs | Status: MERGED | +2 | 0 |