-
Task
-
Resolution: Fixed
-
P1: Critical
-
None
-
None
-
None
-
f5007eaa9 (dev), f85f4adba (6.8), 232044f19 (6.8.0)
This:
GraphsView { theme: GraphsTheme { seriesGradients: [gradient1, gradient2] } Gradient { id: gradient1 GradientStop { position: 0.0; color: "red" } GradientStop { position: 0.33; color: "yellow" } GradientStop { position: 1.0; color: "green" } } Gradient { id: gradient2 GradientStop { position: 0.0; color: "blue" } GradientStop { position: 0.33; color: "red" } GradientStop { position: 1.0; color: "blue" } } } }
Outputs: "Unable to assign QJSValue to QList<QLinearGradient>"
And this:
{{ }}
GraphsView { theme: GraphsTheme { seriesGradients: [ Gradient { GradientStop { position: 0.0; color: "red" } GradientStop { position: 0.33; color: "yellow" } GradientStop { position: 1.0; color: "green" } }, Gradient { GradientStop { position: 0.0; color: "blue" } GradientStop { position: 0.33; color: "red" } GradientStop { position: 1.0; color: "blue" } } ] } }
Outputs: "Cannot assign multiple values to a singular property"
Can seriesGradients be set / get from QML? If not, some API adjustments might be needed.
For Gerrit Dashboard: QTBUG-129137 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
592429,2 | Don't expose seriesGradients to qml | dev | qt/qtgraphs | Status: MERGED | +2 | 0 |
592844,2 | Don't expose seriesGradients to qml | 6.8 | qt/qtgraphs | Status: MERGED | +2 | 0 |
592910,2 | Don't expose seriesGradients to qml | 6.8.0 | qt/qtgraphs | Status: MERGED | +2 | 0 |