Results 1 to 2 of 2

Thread: QStackedLayout vs. QStackedWidget

  1. #1
    Join Date
    Jan 2007
    Posts
    91
    Thanks
    21
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Exclamation QStackedLayout vs. QStackedWidget

    Hello all:
    What is the advantage (if any) of using QStackedWidget over QStackedLayout? I'm having a strange occurence when I add an element to a QStackedLayout. The window appears while I'm constructing it.

    I'm just wondering if this problem might go away if I use a QStackedWidget instead of a QStackedLayout?

    - BRC

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QStackedLayout vs. QStackedWidget

    QStackedWidget gives you a widget interface to the stack, whereas the layout does not. The former uses the latter. Usually it's better to use QStackedWidget.

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

    bruccutler (13th March 2007)

Similar Threads

  1. parsing QtableWidget from a QStackedWidget
    By rosmarcha in forum Qt Programming
    Replies: 10
    Last Post: 13th October 2006, 14:36

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.