Revision control
Copy as Markdown
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
import QtQuick
import QtQuick.Window
import QtQuick.Controls
Window {
width: progressBar.implicitWidth
height: 64
visible: true
property alias progressBar: progressBar
ProgressBar {
id: progressBar
value: 0.5
anchors.centerIn: parent
Timer {
running: true
interval: 500
onTriggered: animation.start()
}
NumberAnimation {
id: animation
target: progressBar
property: "value"
to: 1
duration: 2000
}
}
}