Re: [Ubuntu-phone] Array push not functioning

2014-02-15 Thread Sam Segers
2014-02-14 20:18 GMT+01:00 Roman Shchekin : > Hi all! > In Qt Quick 2.0 there are no more "variant", only "var". > If you strongly want to use old style keyword, be ready for crazy bugs. > Ow, I didn't realize this. If you Google for basic qml types, you always get this: http://qt-project.org/doc

Re: [Ubuntu-phone] Array push not functioning

2014-02-14 Thread Roman Shchekin
Hi all! In Qt Quick 2.0 there are no more "variant", only "var". If you strongly want to use old style keyword, be ready for crazy bugs. Best wishes, Roman. P.S. I've met the same problem in Shorts app. Seems that with "variant" your code will work fine in Qt Quick 1.0. 2014-02-14 23:07 GMT+04:

Re: [Ubuntu-phone] Array push not functioning

2014-02-14 Thread Sam Bull
On ven, 2014-02-14 at 11:11 +0200, Alberto Mardegan wrote: > 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) Roman had the solution, think h

Re: [Ubuntu-phone] Array push not functioning

2014-02-14 Thread Alberto Mardegan
-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: '"

[Ubuntu-phone] Array push not functioning

2014-02-13 Thread Sam Bull
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", componentLi