[Ctk-developers] No vertical ctkSliderWidget

Julien Finet julien.finet at kitware.com
Thu Aug 23 13:46:38 EDT 2012


It sounds like a great addition. Feel free to submit a patch !
You might want to investigate to see if ctkFlowLayout could help changing
the orientation dynamically.
j.

On Thu, Aug 23, 2012 at 10:46 AM, Paul Mercea <pmercea at bwh.harvard.edu>wrote:

> Hi everybody,
>
> I'm working on a module for Slicer and I'm using some CTK widgets.
> I would like to insert a ctkSliderWidget into one of my widgets but for
> layouting purposes it would be great if it could have vertical orientation
> which it doesn't support yet.
> The ctkDoubleSlider in the ctkSliderWidget has a method for setting
> orientation so I wondered if there is a reason the ctkSliderWidget should
> only be horizontal !?
>
> If you think that a setOrientation(Qt::**Orientation) method would be
> nice I could contribute that. Just let me know. I would change the main
> layout to QGridLayout and in setOrientation( ) I would set the given
> orientation to the ctkDoubleSlider and change it's position in the grid
> respectively. Or do you think there is a better approach ? Because changing
> the main layout from horizontal to vertical seems more complicated to me.
>
> Thanks.
> Paul
> ______________________________**_________________
> Ctk-developers mailing list
> Ctk-developers at commontk.org
> http://public.kitware.com/cgi-**bin/mailman/listinfo/ctk-**developers<http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/ctk-developers/attachments/20120823/10ef6611/attachment.html>


More information about the Ctk-developers mailing list