diff options
Diffstat (limited to 'examples/datavisualization/qmllegend/qml/qmllegend/LegendItem.qml')
-rw-r--r-- | examples/datavisualization/qmllegend/qml/qmllegend/LegendItem.qml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/datavisualization/qmllegend/qml/qmllegend/LegendItem.qml b/examples/datavisualization/qmllegend/qml/qmllegend/LegendItem.qml index 50be7a8d..f8c71650 100644 --- a/examples/datavisualization/qmllegend/qml/qmllegend/LegendItem.qml +++ b/examples/datavisualization/qmllegend/qml/qmllegend/LegendItem.qml @@ -31,6 +31,12 @@ Rectangle { id: legendItem state: "unselected" + // Workaround for a layout bug that in some situations causes changing from fully opaque color + // to a transparent one to use black background instead of what is actually under the items. + // Having the control always slighthly transparent forces the background to be refreshed + // properly. + opacity: 0.999 + //! [1] RowLayout { anchors.fill: parent |