Results 1 to 19 of 19

Thread: Remove a QLayout from QGridLayout

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #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: Remove a QLayout from QGridLayout

    You would have to hide the removed widgets. Removing a widget from a layout only means that the widget is no more managed by the layout and so it will stay in the upper left corner unless it is re-parented. I do personally find it a good idea to avoid dynamically changing layouts as much as possible and use for example a stacked widget or layout instead. Of course they don't fit to all situations. In this case you would most likely have to disable the layout during the changes to avoid the flicker, at least if there are several changes in a row.
    J-P Nurmi

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

    grosem (1st January 2007)

Similar Threads

  1. Replies: 6
    Last Post: 13th February 2014, 12:46
  2. QRegExp Help; remove all html tag
    By patrik08 in forum Qt Programming
    Replies: 7
    Last Post: 27th July 2006, 13:40
  3. QGridLayout
    By ToddAtWSU in forum Qt Programming
    Replies: 5
    Last Post: 29th June 2006, 20:34
  4. QPixmap and QGridLayout
    By Talon_Karrde in forum Qt Programming
    Replies: 5
    Last Post: 22nd February 2006, 12:27
  5. QSettings again ... how to remove array elements
    By Mike in forum Qt Programming
    Replies: 4
    Last Post: 11th January 2006, 08:58

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.