Hi,
Yes, console.log now returns more information. The particular case was missed
in the initial patch but
the fix is in ea2e8abd5c655027da51548e0d0f2f55dfb947bc
The expected output for the console.log(stringList) :
[random,rants,qml]
:
Regards,
Aurindam
From: Koehne Kai (Nokia-MP-Qt/Berlin)
Sent: Thursday, November 17, 2011 3:52 PM
To: Jana Aurindam (Nokia-MP-Qt/Berlin)
Subject: FW: Behavior of QStringList in QML changed recently?
Your patch :)
--
Kai Koehne
Software Engineer
Nokia, Qt Development Frameworks
Nokia gate5 GmbH
Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany
Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B
Umsatzsteueridentifikationsnummer: DE 812 845 193
Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori
-Original Message-
From: development-bounces+kai.koehne=nokia@qt-project.org
[mailto:development-bounces+kai.koehne=nokia@qt-project.org] On Behalf Of
ext xizhi@nokia.com
Sent: Thursday, November 17, 2011 3:49 PM
To: development@qt-project.org
Subject: [Development] Behavior of QStringList in QML changed recently?
Hi,
I have some C++ code, returning QStringList to QML. Then I have these code in
QML:
var stringList = myObject.getStringList();
console.log(stringList) // place 1
var idx = stringList.indexOf("rants");
if (idx != -1)
stringList.splice(idx, 1);
At place 1, it was printing the string list, something like this:
random,rants,qml
Now it was printing:
Object
And the splice function on longer remove the "rants" from the list now...
But now I can still get e.g. stringList.length, stringList[1] working fine as
before.
Any hints? A bug, or just an expected change of the behavior?
P.S. I have the latest Qt5 code updated this morning, and running on Kubuntu
11.10.
Xizhi Zhu (Steven)
Software Engineer @ Qt Development Frameworks Nokia
Mobile: +358 (0)50 480 1247
___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development
___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development