Results 1 to 2 of 2

Thread: Hiding controls changes spacing of other controls

  1. #1
    Join Date
    Mar 2007
    Posts
    74
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Hiding controls changes spacing of other controls

    Hi,

    Created in Designer.
    I have 5 slider controls arranged vertically in a group box.
    They all have a size policy of Fixed.
    The containing Group Box also has a size Policy of fixed.

    In some instances I need to hide one or more of the slider controls.
    When I do that the slider controls change their position so that
    ones still displayed are spaced evenly in the vertical direction.
    ie.

    1-------
    2-------
    3-------
    4-------
    5-------

    becomes
    1-------

    2-------

    3-------

    That's nice, but not what I want. I want the sliders to retain their
    original position and have the extra space below them where the other
    controls are now hidden.

    How can I enforce this?

    Thanks

    Mark

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Hiding controls changes spacing of other controls

    Place a vertical spacer below (after) sliders.
    J-P Nurmi

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.