Results 1 to 15 of 15

Thread: All widgets are visible in QStackedWidget

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #9
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: All widgets are visible in QStackedWidget

    All you need is this:
    Qt Code:
    1. QDialog dlg;
    2. QVBoxLayout *l = new QVBoxLayout(&dlg);
    3. MyWidget *w = new MyWidget;
    4. l->addWidget(w);
    5. dlg.exec();
    To copy to clipboard, switch view to plain text mode 

  2. The following user says thank you to wysota for this useful post:

    YuriyRusinov (21st March 2007)

Similar Threads

  1. Performance in hiding/showing widgets
    By Paalrammer in forum Newbie
    Replies: 12
    Last Post: 14th February 2007, 18:57
  2. Replies: 11
    Last Post: 7th July 2006, 13:09
  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. How do I find out which widgets/canvas items are visible?
    By Tommytrojan in forum Qt Programming
    Replies: 11
    Last Post: 6th January 2006, 13:22

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.