From 9d32e8e13b837761af05fa8c030051cfcb825362 Mon Sep 17 00:00:00 2001 From: lucky9loogn Date: Fri, 22 Nov 2024 14:56:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20FluChart=20=E5=9C=A8=20Qt?= =?UTF-8?q?=205.15.2=20=E4=B8=8B=E5=8F=AF=E9=80=89=E9=93=BE=20(=3F.)=20?= =?UTF-8?q?=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Qt5/imports/FluentUI/Controls/FluChart.qml | 4 +++- src/Qt6/imports/FluentUI/Controls/FluChart.qml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Qt5/imports/FluentUI/Controls/FluChart.qml b/src/Qt5/imports/FluentUI/Controls/FluChart.qml index f47bd20d..457da42e 100644 --- a/src/Qt5/imports/FluentUI/Controls/FluChart.qml +++ b/src/Qt5/imports/FluentUI/Controls/FluChart.qml @@ -15,7 +15,9 @@ Canvas { function animateToNewData() { chartAnimationProgress = 0.1; - d.jsChart?.update(); + if (d.jsChart) { + d.jsChart.update(); + } chartAnimator.restart(); } QtObject{ diff --git a/src/Qt6/imports/FluentUI/Controls/FluChart.qml b/src/Qt6/imports/FluentUI/Controls/FluChart.qml index 30af5ab3..8153c3d8 100644 --- a/src/Qt6/imports/FluentUI/Controls/FluChart.qml +++ b/src/Qt6/imports/FluentUI/Controls/FluChart.qml @@ -14,7 +14,9 @@ Canvas { function animateToNewData() { chartAnimationProgress = 0.1; - d.jsChart?.update(); + if (d.jsChart) { + d.jsChart.update(); + } chartAnimator.restart(); } QtObject{