Results 1 to 2 of 2

Thread: Adding witgets to common form (Qt designer)

  1. #1
    Join Date
    May 2009
    Posts
    55
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default Adding witgets to common form (Qt designer)

    Hi trying to figure out how Qt designer include widgets when you change click from Welcome to Edit in right side.
    I would like to make similar application but would like know some way how to do this.

    I can use Tab widget like an example. I don't want to design separate tabs but create separate widgets which
    will be show when you switch from tab1 to tab2.

    Could you please give me some clue how to do this?

    Thanks

    Marek

  2. #2
    Join Date
    Oct 2009
    Posts
    151
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    6
    Thanked 13 Times in 11 Posts

    Default Re: Adding witgets to common form (Qt designer)

    Isn't this what a tab widget does?

    Put the widgets you want to appear on the relevant tab page. When you click that tab they will appear.
    When you click another tab, its widgets will appear, replacing the first tab's items.

    If you want some items to remain on screen, regardless of which tab is chosen, put them on the main page - beside, above or below the tab widget. in this case, you may want to use a layout to get everything lined up and resizing nicely.

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

    binaural (17th March 2010)

Similar Threads

  1. Changing form colors and adding skins
    By srohit24 in forum Qt Programming
    Replies: 9
    Last Post: 28th October 2009, 16:35
  2. Replies: 7
    Last Post: 5th May 2009, 17:32
  3. Form not displayed in QT Designer 4
    By demorphica in forum Qt Tools
    Replies: 2
    Last Post: 15th July 2008, 01:34
  4. Form resizes ok in Designer, not in my test app.
    By MrGarbage in forum Qt Tools
    Replies: 2
    Last Post: 30th August 2007, 15:30
  5. refresh form after adding a widget
    By cyrille in forum Newbie
    Replies: 2
    Last Post: 2nd February 2007, 11:40

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.