← Back to team overview

ubuntu-phone team mailing list archive

Re: Array push not functioning

 

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Sam,

On 02/13/2014 03:38 PM, Sam Bull wrote:
> Can anybody understand what is happening with my code. It is a bit
> of Javascript embedded in my QML:
> 
> print(componentList.push(Qt.createQmlObject("import 
> Ubuntu.Components 0.1; Label {text: '" + node.nodeValue.trim() + 
> "'}", col, "myLabel"))) print("BAR", componentList.length)
> 
> This output from this is: 1 BAR 0
> 
> This says that push has succeeded and the array is now of length 1,
> then on the next line, the length is 0.

is this with Qt 5.2? It looks terribly similar to
https://bugreports.qt-project.org/browse/QTBUG-36491
(which is now fixed upstream, and will also be fixed on our Qt 5.2
packages via distro-patching)

Ciao,
  Alberto

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlL93dYACgkQVLQegMXeCFJurACfTBuWdQgYBHXmWs+4Xho6mjML
DgcAni/ZJDqQo830U1pM5PAkTIX1BRQI
=uSJJ
-----END PGP SIGNATURE-----


Follow ups

References