PDA

View Full Version : Round/Circle LevelBar or Level Indicator



nudels
23rd December 2011, 20:19
Hello all,

i want to create my own QGraphicsItem/Object, but have no idea how to make it.
My widget is to use for a level indicator/bar and should be round.
like one from the: http://cdn.dailymobilebuzz.com/wp-content/uploads/2011/02/Honeycomb-clock.jpg
but i onyl need one circle to draw.

My First idea was to draw to Circles and fill the difference between them. But i dont know how to draw the content depending on the angle.
The Item have a slot, where i set the angle from outside.
Does anybody have an idea how to manage the drawing of the content?

Thanks :)

with best regards and happy holidays :)

nudels

Oleg
24th December 2011, 11:33
See QPainter and Concentric Circles Example.