Hi Wagner,<div><br></div><div>Thanks for your feedback. The behavior you encounter with ctkRangeSlider is normal, it is the exact same behavior than QSlider (or QxtSpanSlider): you can't set the value of an handle before making sure that it will be inside the slider bounds (setMinimum/setMaximum). </div>

<div>Qt Designer solves the issue by following the order of the properties in the header of a C++ class. </div><div>To have a correct behavior when using Qt Designer, the "Minimum" and "Maximum" properties (Q_PROPERTY) are defined before the "MinimumValue"/"MaximumValue" properties.</div>

<div><br></div><div>I wouldn't change anything in the code. The behavior seems fine to me. I would prefer adding a warning in the comments.</div><div><br></div><div>Feel free to submit a patch with more documentation. Otherwise, I'll do it.</div>

<div><br></div><div>Thanks,</div><div>Julien.</div><div><br><div class="gmail_quote">On Wed, Oct 6, 2010 at 6:32 PM, Ron Kikinis <span dir="ltr"><<a href="mailto:kikinis@bwh.harvard.edu">kikinis@bwh.harvard.edu</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">good catch relative to Hounsfield units.<div><div></div><div class="h5"><br>
<br>
On 10/6/2010 10:47 AM, Wagner Sales wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all,<br>
<br>
After taking a look for a couple of minutes in range sliders which<br>
inherits from QAbstractSlider I see a ( i think ) problem: you cannot<br>
start setting the minimum value as a negative value. Instead, you'll<br>
needs to set minimum by QAbstractSlider::setMinimum(negative value)<br>
and after ctkRangeSlider::setMinimumValue(negative value). Only to<br>
point: this occurs in QxtSpanSlider too ( of course not the topic here<br>
)!. What can be done about this? Change the behavior? Document in the<br>
class? A warning in the method? Well, since I spent some time to found<br>
this, I think others don't need to spent too. ;)<br>
<br>
Best Regards,<br>
<br>
Wagner Sales<br>
_______________________________________________<br>
Ctk-developers mailing list<br>
<a href="mailto:Ctk-developers@commontk.org" target="_blank">Ctk-developers@commontk.org</a><br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers</a><br>
</blockquote>
<br>
<br></div></div><font color="#888888">
-- <br>
Ron Kikinis, M.D.,<br>
Robert Greenes Distinguished Director of Biomedical Informatics<br>
Professor of Radiology, Harvard Medical School<br>
Director, Surgical Planning Laboratory<br>
<a href="http://www.spl.harvard.edu/~kikinis" target="_blank">http://www.spl.harvard.edu/~kikinis</a></font><div><div></div><div class="h5"><br>
_______________________________________________<br>
Ctk-developers mailing list<br>
<a href="mailto:Ctk-developers@commontk.org" target="_blank">Ctk-developers@commontk.org</a><br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers</a><br>
</div></div></blockquote></div><br></div>