qt6-bb10/qtdeclarative/tests/auto/qmlls/utils/data/file1.qml

66 lines
1.2 KiB
QML

// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
import QtQuick 2.15
Item {
component C: Item {}
property int a
property bool b
property C c
property var d
property list<int> e
component D: Item { id: icid }
C {id: firstC }D{id: firstD }
C { id: secondC } D{ id: secondD}
C {
C{}
C{
C {}
C {}
C {}
}
C{}
}
component IC: Item { property C myC }
a: 43
d: 123 + 7
function f(a: int, b: Item, c: C) : C {
return c;
}
function lala() {}
Rectangle {
color: "green"
anchors.fill: parent
width: root.height
height: root.foo.height
}
property Rectangle foo: Rectangle{ height: 200 }
c: C{}
property C ccc: c
property C cccc
cccc: c
function fff(a: int, b: Item, c: C) : C {
let x = c.children;
return x;
}
function helloLambda(c: C) {
let myLambda = function (x, y, z) {
let xyz = c.children;
};
}
// Hello World!
Item {}
// Goodbye World!
}