profile-image

mmj

Anno Nym

QScale

Qt Widgets Jan 07 2012
Score 59%
59.00 Likes
41 Dislikes
QScale Qt Widgets
Sep 05 2014
Py-Cashew KDE4 Extensions
Sep 02 2013
QScale Qt Widgets
Hi,
thanks for your comments.
1) I've quickly looked into the code to see, why it does not work with switches max/min values. Here is a quick patch:
289c289
< for(int i = 0; i <= (int)(minorSteps * valueSpan / majorStep); i++){
---
> for(int i = 0; i <= (int)(minorSteps * abs(valueSpan) / majorStep); i++){
295c295
< painter->rotate(majorStep * angleSpan / (-valueSpan * minorSteps));
---
> painter->rotate(majorStep * angleSpan / (-fabs(valueSpan) * minorSteps));
302,303c302,303
< for(int i = (int)ceil(m_minimum / majorStep);
< i <= (int)(m_maximum / majorStep); i++){
---
> for(int i = (int)ceil(fmin(m_minimum, m_maximum) / majorStep);
> i <= (int)(fmax(m_minimum, m_maximum) / majorStep); i++){

I've done this in quite short time, and I don't know the code anymore, as I have written it years ago. So it is not unlikely, that it has inintended side effects.

2) I initially planned to do that, but I think you are more flexible, when using a extra widget. In my applications I did it that way. The reason is, that it looks too tiny, if you use the standard font. In case you make it bold and bigger, it does not line up with the other fonts in the GUI. So the only option is to provide full font formatting options in the API. This produces code and you still are less flexible (can not use QLCDNumber).

3) This should be easy to add (filling some circle with a QConicalGradient brush). The only effort is to write a sensible API to define the velues for that.

Well, while these things are no big deal, I'm not shure, If I find time in near future to add them, as I did not program in C++ for years now.
Jul 24 2012
QScale Qt Widgets
Mar 27 2012
QScale Qt Widgets
Feb 11 2012
QScale Qt Widgets
Feb 01 2012
Supreme Wallpaper Other
Jul 19 2011
Codie Development
Sep 08 2010