Revision control
Copy as Markdown
// Copyright (C) 2025 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
import QtQml.Models
import QtQuick
ListView {
width: 200
height: 200
displaced: Transition {
NumberAnimation { properties: "x,y"; duration: 400; easing.type: Easing.OutBounce }
}
remove: Transition {
NumberAnimation { properties: "scale"; from: 1; to: 0; duration: 400 }
}
model: ObjectModel {
id: objectModel
Rectangle {
width: 200
height: 200
color: "red"
}
Rectangle {
width: 200
height: 200
color: "green"
}
Rectangle {
width: 200
height: 200
color: "blue"
}
}
}