blob: e9e4b859563e8c8432fb21fd7277ff98a59491e3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
pragma Strict
import QtQml
QtObject {
property list<string> stringList: ["one", "two"]
property list<int> intList: [1, 2]
property list<QtObject> objectList: [this, this]
Component.onCompleted: {
console.log(stringList)
console.log(stringList + "")
console.log(intList)
console.log(intList + "")
console.log(objectList)
console.log(objectList + "")
console.log(["a", "b"]);
// TODO: Cannot do this, yet, because we cannot coerce a list to string on the fly.
// We need to store it as list first.
// console.log(["a", "b"] + "");
}
}
|