← Back to team overview

ubuntu-phone team mailing list archive

Re: Array push not functioning

 

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:00 Sam Bull <sam.hacking@xxxxxxxx>:

> 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 he forgot to CC the list. Just needed to
> change variant to var. So the property is:
>
>         property var componentList: new Array()
>
> Working perfectly now.
>
> --
> Mailing list: https://launchpad.net/~ubuntu-phone
> Post to     : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~ubuntu-phone
> More help   : https://help.launchpad.net/ListHelp
>
>

Follow ups

References