PDA

View Full Version : Generating Dial using Qwt in Qt



Navi
11th June 2015, 05:43
I am able to generate a dial with scale outside the dial using Qwt.I need to display the scale inside the dial.how can i display the scale inside the dial using Qwt

Uwe
11th June 2015, 06:41
This is not supported, but on my TODO list since quite some time ( see https://sourceforge.net/p/qwt/feature-requests/54/ ).

I remember, that in a similar request a user posted code for a modified QwtRoundscaleDraw - it might have been here or on the Qwt mailing list - check the archives. This patch wasn't that difficult and did the job.

But if the layout of your application doesn't rely on a valid minimumSizeHint() writing a patched version of QwtRoundscaleDraw yourself is not that difficult. If you want to do this ( or found the patched version in some archive ) please upload a patch to https://sourceforge.net/p/qwt/patches, so that I don't forget to implement this feature next time I'm working on that part of Qwt.

Uwe