blob: a6d66482a1d72aafa1ac942d5bc15353331e31b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
// Copyright (C) 2024 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only
import QtQuick
// behavior
Rectangle {
width: 100; height: 100
Behavior on width {}
Behavior on height {
NumberAnimation { duration: 1000 }
}
}
// custom behavior
Text {
text: "aaa"
FadeBehavior on text {}
}
// animation on
ProgressBar {
from:0; to: 100; width: 200
NumberAnimation on value {
from: 0; to: 100
duration: 2000
loops: NumberAnimation.Infinite
}
}
|