diff options
Diffstat (limited to 'tests/auto/qmldom/domdata/domitem/attachedOrGroupedProperties.qml')
-rw-r--r-- | tests/auto/qmldom/domdata/domitem/attachedOrGroupedProperties.qml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/auto/qmldom/domdata/domitem/attachedOrGroupedProperties.qml b/tests/auto/qmldom/domdata/domitem/attachedOrGroupedProperties.qml new file mode 100644 index 0000000000..ff7720506c --- /dev/null +++ b/tests/auto/qmldom/domdata/domitem/attachedOrGroupedProperties.qml @@ -0,0 +1,34 @@ +// Copyright (C) 2023 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only + +import QtQuick + +Text { + id: grouped + + // Dot notation + Binding { + grouped.font.family: "mono" + } + + // Group notation + Test { + id: test + myText { + font { + pixelSize: 12 + } + } + } + + component Test : Rectangle { + property Text myText: text1 + Text { + id: text1 + } + } + + Keys.onPressed: (event)=> { + + } +} |