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
Developer
sawrubh
Posts: 34
Registered: ‎07-05-2012
My Device: Dev Alpha
Accepted Solution

Creating Animating Dial/Meter like interface with a Pointer/Needle

I want to create this animated thing, something similar to a meter/dial where the needle/pointer changes based on the current value of a variable ? How could I do this using Cascades/QML and maybe some rotation or some such transformation on an imageView element maybe ?

 

Thanks

Developer
Zmey
Posts: 1,515
Registered: ‎12-18-2012
My Device: PlayBook, Z10, DAC

Re: Creating Animating Dial/Meter like interface with a Pointer/Needle

[ Edited ]

I'm not sure if it's possible to implement this in pure QML. Complex components are easier to implement in C++.

Check this sample on github:

https://github.com/blackberry/Cascades-Samples/tree/master/speedwriter

speedgauge.cpp & speedgauge.h

 


Andrey Fidrya, @zmeyc on twitter