Results 1 to 2 of 2

Thread: Remove widgets from a QSplitter

  1. #1
    Join Date
    May 2006
    Posts
    23
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Remove widgets from a QSplitter

    Simple question; is it possible to dynamically remove widgets from a QSplitter instance?

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Remove widgets from a QSplitter

    Try this (I never tried it):
    Qt Code:
    1. QWidget *temp = mySplitter->widget(index);
    2. delete temp;
    To copy to clipboard, switch view to plain text mode 

    If this doesnt work, QWidget::hide() should (but that does not delete the widget, it stays in memory)

Similar Threads

  1. Replies: 11
    Last Post: 7th July 2006, 13:09
  2. Replies: 3
    Last Post: 25th March 2006, 06:15
  3. How to movable dock widgets?
    By becond in forum Qt Tools
    Replies: 3
    Last Post: 21st February 2006, 19:57
  4. Creating Widgets
    By hylke in forum Qt Programming
    Replies: 2
    Last Post: 5th February 2006, 08:37
  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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.