[Ctk-developers] ctkRangeSlider, ctkDoubleRangeSlider and others inherited QAbstractSlider with a negative minimum value

Ron Kikinis kikinis at bwh.harvard.edu
Wed Oct 6 16:32:28 UTC 2010


good catch relative to Hounsfield units.

On 10/6/2010 10:47 AM, Wagner Sales wrote:
> Hi all,
>
> After taking a look for a couple of minutes in range sliders which
> inherits from QAbstractSlider I see a ( i think ) problem: you cannot
> start setting the minimum value as a negative value. Instead, you'll
> needs to set minimum by QAbstractSlider::setMinimum(negative value)
> and after ctkRangeSlider::setMinimumValue(negative value). Only to
> point: this occurs in QxtSpanSlider too ( of course not the topic here
> )!. What can be done about this? Change the behavior? Document in the
> class? A warning in the method? Well, since I spent some time to found
> this, I think others don't need to spent too. ;)
>
> Best Regards,
>
> Wagner Sales
> _______________________________________________
> Ctk-developers mailing list
> Ctk-developers at commontk.org
> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers


-- 
Ron Kikinis, M.D.,
Robert Greenes Distinguished Director of Biomedical Informatics
Professor of Radiology, Harvard Medical School
Director, Surgical Planning Laboratory
http://www.spl.harvard.edu/~kikinis



More information about the Ctk-developers mailing list