Results 1 to 8 of 8

Thread: setCentralWidget() without deleting prev widget

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanked 268 Times in 268 Posts
    Wiki edits
    20

    Default Re: setCentralWidget() without deleting prev widget

    Ohh, ok.

    Set a QStackedWidget as your central widget, then you can add multiple "central widgets"'.
    http://doc.qt.nokia.com/4.6/qstackedwidget.html

  2. #2
    Join Date
    May 2010
    Posts
    13
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: setCentralWidget() without deleting prev widget

    I need to add one widget to centralWidget, not multiple..
    Just I need that setCentralWidget() don't delete previous widget, because I will use this widget later.
    QStackedWidget can do this work?

  3. #3
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanked 268 Times in 268 Posts
    Wiki edits
    20

    Default Re: setCentralWidget() without deleting prev widget

    If I were you, I would already have checked the documentation of QStackedWidget

  4. #4
    Join Date
    May 2010
    Posts
    13
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: setCentralWidget() without deleting prev widget

    I have read this before, but I have forgotten this.
    Ok. I'll check the documentation of QStackedWidget, thanks!

Similar Threads

  1. Replies: 4
    Last Post: 19th May 2009, 09:06
  2. Rarely crushing application when deleting widget
    By nedlab in forum Qt Programming
    Replies: 2
    Last Post: 12th February 2009, 10:58
  3. Problem with setCentralWidget
    By blm in forum Qt Programming
    Replies: 3
    Last Post: 2nd September 2008, 13:33
  4. Replies: 2
    Last Post: 7th June 2008, 14:12
  5. QMainWindow setCentralWidget from ui widget, Qt4
    By alan in forum Qt Programming
    Replies: 5
    Last Post: 13th May 2008, 14:00

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.