blob: d8fe7f98c35473a01ba3c19e7c9ff9c28c4c843f (
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
|
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
import QtQuick 2.0
Rectangle {
id: rootRect
width: 100
states: [
State {
name: "state1"
PropertyChanges {
target: rootRect
width: 200
}
}
]
transitions: [
Transition {
from: "*"
to: "state1"
PropertyAnimation {
target: rootRect
property: "width"
duration: 100
}
}
]
}
|