blob: b303f091b7e66425186fe12f88f7a5b9270e4dfb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
import QtQml
import Qt.test
QtObject {
property listPropertyAssignment_Gadget gadget
property ListPropertyAssignment_Object object: ListPropertyAssignment_Object { }
Component.onCompleted: {
gadget.gadgetStringList = ["Element1", "Element2", "Element3"]
object.qobjectStringList = ["Element1", "Element2", "Element3"]
gadget.gadgetStringList[0] = "Completely new Element"
object.qobjectStringList[0] = "Completely new Element"
}
}
|