Results 1 to 3 of 3

Thread: How to change a widget to other widget in layout?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2010
    Posts
    68
    Thanks
    8
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Default How to change a widget to other widget in layout?

    I have a form (widget form) on this form has 3 widgets: header, centralWidget, footer. A vertical layout to wrap them, like this:

    __________________________________________________ ______________
    |
    | Header Widget contains Navigation To other forms
    |_________________________________________________ ______________
    |
    |
    |
    | Central Widget
    |
    |
    |
    |_________________________________________________ ______________
    |
    | Footer Widget
    |_________________________________________________ ______________

    The footer and header widget are no changes, but Central Widget always change when users click any items of the navigation.

    My question is: How to change the Central Widget to other widget when click on a button? Which classes helps me do this?
    Last edited by Kevin Hoang; 20th March 2010 at 11:35.

Similar Threads

  1. Replies: 2
    Last Post: 22nd February 2010, 08:48
  2. Widget layout in GridLayout
    By Dato0011 in forum Qt Programming
    Replies: 8
    Last Post: 7th December 2009, 09:26
  3. changing layout of a widget
    By mikro in forum Qt Programming
    Replies: 10
    Last Post: 4th August 2009, 20:21
  4. Layout (widget overlay)
    By whitefurrows in forum Qt Programming
    Replies: 3
    Last Post: 3rd July 2009, 23:54
  5. Hide widget, but not change layout
    By dimaz in forum Qt Programming
    Replies: 3
    Last Post: 21st November 2008, 14:32

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.