Results 1 to 3 of 3

Thread: Layouts in Dialog automatically resizing on hiding/unhiding widgets

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2011
    Posts
    11
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    1

    Default Re: Layouts in Dialog automatically resizing on hiding/unhiding widgets

    Hi, I know this is old, but I've the exact same problem, did you ever figure it out?
    ciao

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Wiki edits
    17

    Default Re: Layouts in Dialog automatically resizing on hiding/unhiding widgets

    Take a look at the Extension example. The magic sauce is:
    Qt Code:
    1. mainLayout->setSizeConstraint(QLayout::SetFixedSize);
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. Replies: 1
    Last Post: 25th August 2009, 13:26
  2. Layouts and form resizing
    By Chisum in forum Newbie
    Replies: 1
    Last Post: 2nd April 2009, 00:58
  3. Expanding widgets and windows automatically?
    By jakykong in forum Qt Tools
    Replies: 2
    Last Post: 25th September 2008, 01:17
  4. Layouts to ease resizing... [solved]
    By Dumbledore in forum Qt Tools
    Replies: 6
    Last Post: 16th February 2008, 16:06
  5. Performance in hiding/showing widgets
    By Paalrammer in forum Newbie
    Replies: 12
    Last Post: 14th February 2007, 18:57

Tags for this Thread

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.