Results 1 to 3 of 3

Thread: How to remove widgets from QSplitter?

  1. #1
    Join Date
    Jun 2009
    Posts
    8
    Thanks
    3
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default How to remove widgets from QSplitter?

    I can add widgets with QSplitter::addWidget(), and I can add/move widgets with QSplitter::insertWidget(), but is it possible to remove a widget - short of deleting and replacing the QSplitter?

    Thanks.

  2. #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: How to remove widgets from QSplitter?

    Have you tried reparenting the widget you want to remove?
    J-P Nurmi

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

    mcb (23rd July 2009)

  4. #3
    Join Date
    Jun 2009
    Posts
    8
    Thanks
    3
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to remove widgets from QSplitter?

    I tried it and it works. Thanks.

Similar Threads

  1. remove widgets from layout in run time
    By bindigi01 in forum Qt Programming
    Replies: 10
    Last Post: 6th June 2009, 22:36
  2. How to set Widgets sizes with in QSplitter
    By rajeshs in forum Qt Programming
    Replies: 1
    Last Post: 29th June 2007, 07:38
  3. QSplitter - Remove Widgets?
    By durbrak in forum Qt Programming
    Replies: 1
    Last Post: 10th December 2006, 12:17
  4. Remove widgets from a QSplitter
    By blukske in forum Qt Programming
    Replies: 1
    Last Post: 14th July 2006, 10:38
  5. Replies: 3
    Last Post: 25th March 2006, 06:15

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.