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] <file:///_the_file_where_console.log_was_called>:<line_number_where_console.log_was_called> 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: [email protected] [mailto:[email protected]] On Behalf Of ext [email protected] Sent: Thursday, November 17, 2011 3:49 PM To: [email protected] 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 [email protected] http://lists.qt-project.org/mailman/listinfo/development _______________________________________________ Development mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/development
