Results 1 to 8 of 8

Thread: addWidget in qWidgetStack

Threaded View

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

    Default Re: addWidget in qWidgetStack

    Quote Originally Posted by mickey
    I am in main.cpp...
    This should not be done there Setting layouts should be done in the constructor of a widget. Nevertheless QWidget::setLayout() is public... Aa... you're using Qt3. Then setting the widget as a parent to a layout should be enough.
    Last edited by wysota; 3rd March 2006 at 12:19.

Similar Threads

  1. Replies: 1
    Last Post: 19th April 2007, 16:56
  2. QWidgetStack
    By cpepe in forum Qt Programming
    Replies: 2
    Last Post: 31st March 2006, 16:26

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.