aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmltc/QmltcTests/generalizedGroupedProperty.qml
blob: 2c21298c3559db581b4ddbcef6527c835893b44f (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

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!"
    }
}