Debian Codegraph @

tests/auto/quick/qquickrepeater/data/destroycount.qml

raw
1 import QtQuick 2.0
2
3 Item {
4 width: 360
5 height: 480
6
7 Repeater {
8 id: repeater
9 objectName: "repeater"
10 anchors.fill: parent
11 property var componentCount: 0
12 Component {
13 Text {
14 y: index*20
15 text: index
16 Component.onCompleted: repeater.componentCount++;
17 Component.onDestruction: repeater.componentCount--;
18 }
19 }
20 }
21
22 }