Results 1 to 4 of 4

Thread: main window doesn't re-size when child widget hidden

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2013
    Posts
    5
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default main window doesn't re-size when child widget hidden

    Hello,

    I am designing a UI in which certain user actions (clicking check boxes) can result in various widgets on the UI being hidden or shown. I notice when widgets are shown the layout management system will increase the size of the GUI to accommodate to new items. However in contrast when the widgets are hidden the layout simply resizes/redistributes the existing widgets to fill the leftover space but does not actually reduce the overall size of the top level window. This behavior is not desired, instead I would like the window to actually shrink.

    A few questions:

    1.) Is there a way to automatically tell a layout to behave in this manner? I havn't found one if there is.

    2.) What signal does the layout management system catch (or what event) to know when child widgets have been hidden? Looking at the documentation it doesnt look like a show() or hide() signal is emitted from QWidget.
    Last edited by sandsaturn22; 28th August 2013 at 04:17.

Similar Threads

  1. Guide needed for layout management
    By sikander243 in forum Newbie
    Replies: 1
    Last Post: 14th March 2013, 11:02
  2. Layout management thoughts required
    By ChrisW67 in forum Qt Programming
    Replies: 2
    Last Post: 5th July 2011, 23:58
  3. Replies: 3
    Last Post: 30th May 2008, 07:37
  4. Replies: 3
    Last Post: 4th April 2008, 19:51
  5. Layout Management Issues
    By dave in forum Newbie
    Replies: 3
    Last Post: 5th November 2006, 18:16

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
  •  
Qt is a trademark of The Qt Company.