Revision control
Copy as Markdown
// Copyright (C) 2026 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
import QtQuick 2.0
Rectangle {
id: root
width: 200
height: 120
color: "blue"
property int marker: 1
Item {
id: child
property Item parentBlock: parent
width: parentBlock.width / 2
height: parentBlock.height / 2
}
Timer {
repeat: true
interval: 200
running: true
onTriggered: console.log("indirect hasParent=" + (child.parentBlock !== null)
+ " marker=" + root.marker)
}
}