aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmltc/QmltcTests/generalizedGroupedProperty.qml
blob: a037776a52af3e8ff18d361274fbce85142104d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright (C) 2021 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

import QtQml
import QtQuick
import QmltcTests

QmlGeneralizedGroupPropertyTestType {
    id: root

    property int myInt: 5

    group.count: myInt
    group.formula: 3 + 5
    group.str: "Hello World!"
    group.object: MyImmediateQtObject {
        property int myInt: 42
        root.group.count: myInt
        root.group.formula: 3 - 5
        root.group.str: "Goodbye World!"
    }
}