blob: 596efac3250d0f8143b19d67bb50218c6b0898a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import QtQuick
Item {
property int heightChanges: 0
property int widthChanges: 0
implicitWidth: 50
implicitHeight: 50
height: { return 0 }
width: { return 10 }
Behavior on height { NumberAnimation { duration: 300 } }
Behavior on width { NumberAnimation { duration: 300 } }
onHeightChanged: ++heightChanges
onWidthChanged: ++widthChanges
}
|