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
Rectangle {
id: child
width: parent.width / 2
height: parent.height
}
Timer {
repeat: true
interval: 200
running: true
onTriggered: console.log("parent_test hasParent=" + (child.parent !== null)
+ " marker=" + root.marker)
}
}