Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Highlighted
Developer
Posts: 37
Registered: ‎08-15-2013
My Device: Blackberry 10
My Carrier: XL

Change Label When Interval QTimer Change

Is there any event like onIntervalChanged for Qtimer in QML? I want to change Label Text when Interval QTimer change.

Developer
Posts: 6,152
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: Change Label When Interval QTimer Change

Yes declare it not to be a single shot then define an interval...

 

http://developer.blackberry.com/native/reference/cascades/qtimer.html#interval-prop

 

It will then fire every interval msec.


If you've been helped click on Like Button, if you've been saved buy the app. Smiley Happy

Developer of stokLocker, Sympatico and Super Sentences.
Developer
Posts: 37
Registered: ‎08-15-2013
My Device: Blackberry 10
My Carrier: XL

Re: Change Label When Interval QTimer Change

thanks for your answer, but its on C++, can you give some example in QML please ..
Developer
Posts: 6,152
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: Change Label When Interval QTimer Change

It's exactly the same. Have you declared QTimer accessible in QML?

 

Take a look at this tutorial for how to do it...

 

http://developer.blackberry.com/native/documentation/cascades/dev/signals_slots/signals_slots_set_up...


If you've been helped click on Like Button, if you've been saved buy the app. Smiley Happy

Developer of stokLocker, Sympatico and Super Sentences.