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
Posts: 34
Registered: ‎07-05-2012
My Device: Dev Alpha
My Carrier: Airtel
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

Highlighted
Developer
Posts: 1,524
Registered: ‎12-18-2012
My Device: Z30, Z10 LE, DevAlpha C, PlayBook

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