Alessandro Bonazzi 8c43d5cf2f Patch level : 12.00
Files correlati     : cg0.exe cg0700a.msk cg0700b.msk cg3.exe cg4.exe

Bug                 :

Commento:
Merge 1.0 libraries
2025-04-06 00:42:21 +02:00

35 lines
847 B
QML

import QtQuick 1.0
Rectangle {
width: 180; height: 200;
Component {
id: delegate
Rectangle {
id: wrapper
width: 180; height: 200
color: "blue"
states: State {
name: "otherState"
PropertyChanges { target: wrapper; color: "green" }
}
transitions: Transition {
PropertyAction { target: wrapper; property: "ListView.delayRemove"; value: true }
ScriptAction { script: console.log(wrapper.ListView.delayRemove ? "on" : "off") }
}
Component.onCompleted: {
console.log(ListView.delayRemove ? "on" : "off");
wrapper.state = "otherState"
}
}
}
ListView {
model: 1
delegate: delegate
}
}