From 14f95acd8b879d3cb6eaa73e880161270562ab25 Mon Sep 17 00:00:00 2001 From: Jos van den Oever Date: Sat, 2 Sep 2017 00:30:35 +0200 Subject: [PATCH] Work around issue in QtCreator designer Problem with the legend supposedly having no members --- demo/chart.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/demo/chart.qml b/demo/chart.qml index a944f39..887a76d 100644 --- a/demo/chart.qml +++ b/demo/chart.qml @@ -5,7 +5,10 @@ Item { ChartView { id: chart anchors.fill: parent - legend.alignment: Qt.AlignBottom + Component.onCompleted: { + legend.alignment = Qt.AlignBottom + } + antialiasing: true DateTimeAxis {