Results 1 to 2 of 2

Thread: QFrame showing 4 different widgets

  1. #1
    Join Date
    Jul 2007
    Posts
    104
    Thanks
    22
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default QFrame showing 4 different widgets

    I crated a main widget and It has a QFrame on it.I have 4 widgets .I am trying to show these widgets on this frame.For first widget there is no matter.By using setupUi I can do.But for others I can't.There is no changing.It is still showing first widget.I think, before showing others on frame I should destroy previous widget.But I couldn't achieve this.How can destroy this relationship or setupUi mention.?

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QFrame showing 4 different widgets

    You want to show all widgets at the same time, or separately?
    All in the same time can easily be done with a central widget with a grid layout that contains the others.

    Separately can be done with a QStackedWidget as the central widget.

    Regards

Similar Threads

  1. Qt3 - Multiple transparent widgets
    By bythesea in forum Qt Programming
    Replies: 4
    Last Post: 11th September 2009, 11:24
  2. widgets behind hidden widgets not working
    By bpetty in forum Newbie
    Replies: 13
    Last Post: 7th September 2007, 20:23
  3. Performance in hiding/showing widgets
    By Paalrammer in forum Newbie
    Replies: 12
    Last Post: 14th February 2007, 18:57
  4. Replies: 11
    Last Post: 7th July 2006, 13:09
  5. Creating Widgets
    By hylke in forum Qt Programming
    Replies: 2
    Last Post: 5th February 2006, 08:37

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.