Results 1 to 3 of 3

Thread: Remove widgets in a Layout

  1. #1

    Default Remove widgets in a Layout

    Hi all..

    Can I know how to remove all widgets within a layout and hide them so that i can add other widgets in the same place dynamically?

    Thank You

  2. #2
    Join Date
    May 2008
    Location
    Kyiv, Ukraine
    Posts
    418
    Thanks
    1
    Thanked 29 Times in 27 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Remove widgets in a Layout

    Take a look at QStackedWidget.
    I'm a rebel in the S.D.G.

  3. #3
    Join Date
    Apr 2009
    Location
    Italy
    Posts
    70
    Thanks
    23
    Thanked 15 Times in 11 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Remove widgets in a Layout

    See also the docs for QLayout::takeAt():

    http://doc.trolltech.com/4.6/qlayout.html#takeAt

Similar Threads

  1. How to remove widgets from QSplitter?
    By mcb in forum Qt Programming
    Replies: 2
    Last Post: 23rd July 2009, 06:10
  2. Layout, widgets and resize questions
    By Carlsberg in forum Qt Programming
    Replies: 2
    Last Post: 26th June 2009, 12:49
  3. remove widgets from layout in run time
    By bindigi01 in forum Qt Programming
    Replies: 10
    Last Post: 6th June 2009, 22:36
  4. Replies: 1
    Last Post: 14th May 2009, 22:00
  5. Custom widgets in layout
    By Palmik in forum Newbie
    Replies: 11
    Last Post: 26th January 2009, 12:08

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.