diff --git a/src/Qt5/imports/FluentUI/Controls/FluProgressBar.qml b/src/Qt5/imports/FluentUI/Controls/FluProgressBar.qml index c89ba6fb..e75b47ba 100644 --- a/src/Qt5/imports/FluentUI/Controls/FluProgressBar.qml +++ b/src/Qt5/imports/FluentUI/Controls/FluProgressBar.qml @@ -41,13 +41,15 @@ ProgressBar{ height: parent.height radius: d._radius color: control.color - PropertyAnimation on x { - id:animator_x + SequentialAnimation on x { + id: animator_x running: control.indeterminate && control.visible - from: -rect_progress.width - to:control.width+rect_progress.width loops: Animation.Infinite - duration: control.duration + PropertyAnimation { + from: -rect_progress.width + to: control.width + rect_progress.width + duration: control.duration + } } } } diff --git a/src/Qt6/imports/FluentUI/Controls/FluProgressBar.qml b/src/Qt6/imports/FluentUI/Controls/FluProgressBar.qml index bca37cea..9c2c6123 100644 --- a/src/Qt6/imports/FluentUI/Controls/FluProgressBar.qml +++ b/src/Qt6/imports/FluentUI/Controls/FluProgressBar.qml @@ -42,13 +42,15 @@ ProgressBar{ height: parent.height radius: d._radius color: control.color - PropertyAnimation on x { - id:animator_x + SequentialAnimation on x { + id: animator_x running: control.indeterminate && control.visible - from: -rect_progress.width - to:control.width+rect_progress.width loops: Animation.Infinite - duration: control.duration + PropertyAnimation { + from: -rect_progress.width + to: control.width + rect_progress.width + duration: control.duration + } } } }