← Back to team overview

ubuntu-phone team mailing list archive

Re: [qml] Using a timeout on a delegate?

 

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

On 01/19/2014 05:37 PM, Sam Bull wrote:
> Having a little trouble with QML, once again.
> 
> I have a function which is called periodically (it's used to set
> the visible property). When the function finds some value to be
> true, I want to change a property after a 3 second timeout.
> 
> The closest I have got so far, is creating a Timer object, and
> setting it running from the function. However, my delegate is a
> ListItem element, and won't allow me to put the Timer within it.
> That means the Timer cannot set the delegate property once
> triggered.

You are hitting this bug:
https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1190509

You'll see in the comments that there's a workaround, though:

resources: [
    Timer { ... }
]

Ciao,
  Alberto

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

iEYEARECAAYFAlLcDGAACgkQVLQegMXeCFIylgCdEDURVfIYNFXXtCgGN+2h7cc6
QosAn1rVfFtOgO5jmByo4R5TF8zHu/6A
=+EnK
-----END PGP SIGNATURE-----


References