Results 1 to 3 of 3

Thread: [SOLVED] widgets moving after setVisible(false) in aQLayout

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Oct 2008
    Posts
    71
    Thanks
    6
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Re: widgets moving after setVisible(false) in aQLayout

    Consider putting a spacer along with the item in a separate V or H layout, and then adding this layout to your main layout. This way the spacer would fill all the free space when the item is hidden.

  2. The following user says thank you to psih128 for this useful post:

    dmcr (3rd February 2010)

Similar Threads

  1. QTextBlock::setVisible(false) has no effect [unresolved]
    By JohannesMunk in forum Qt Programming
    Replies: 7
    Last Post: 19th February 2010, 15:16
  2. Avoid moving widgets
    By desch in forum Qt Programming
    Replies: 5
    Last Post: 9th April 2009, 06:27
  3. setVisible(false) doesn't work
    By sepehr in forum Qt Programming
    Replies: 2
    Last Post: 4th February 2009, 16:20
  4. Replies: 3
    Last Post: 29th May 2008, 13:50
  5. Moving widgets within a layout.
    By importantman in forum Qt Programming
    Replies: 6
    Last Post: 26th May 2007, 20:21

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.