Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.1.0
-
None
-
d9b934a1c115f6eac00b9b2564c908f7eecd196a
Description
When the following snippet is run, it causes list2 to be a list of length 3, with contents "1", "2", "hello,world". With QtQuick 1, this produced a list of length 4, with contents "1", "2", "hello", "world"
import QtQuick 2.0 Item { property variant list2 Component.onCompleted: { list2 = ["1", "2"] // listObject.mylist is a QStringList property coming from C++ // of size 2 ("hello","world") list2 = list2.concat(listObject.mylist) for (var i = 0; i < list2.length; ++i) console.log(list2[i]) } }