aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlcppcodegen/data/mergedObjectWrite.qml
blob: 5f4bb4ff8722cc4255d87a3345bc748c2e3f1848 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pragma Strict
import QtQuick

Item {
    objectName: "a"

    function f(arg: Item) : string {
        // Write arg as Item, read it as QtObject.
        arg.x = 5
        console.log(arg)
        return arg.objectName
    }

    Component.onCompleted: objectName = f(null)
}