Results 1 to 2 of 2

Thread: Shared widget by pages in a QStackedWidget

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2010
    Posts
    61
    Thanks
    18
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Shared widget by pages in a QStackedWidget

    Hi guys,

    I have QStackedWidget object with 3 pages. There several different widgets in every pages and QStackedWidget ensures that only one page at a time is visible.

    Nevertheless I would like these pages to share one common QListWidget. This list displays results that should be visible no matter in where page the user is. So I created one QListWidget that I passed in all pages. But it looks like only the last page displays the widget. Of course if I remove the widget from the last page, the widget is then visible in the second page but not in the first one.

    I guess this is related to the QStackedWidget properties. But I'm wondering whether there is a way for this widget to be visible in all pages.

    Any ideas ?

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Shared widget by pages in a QStackedWidget

    Please avoid multiple posts. Main post

Similar Threads

  1. Help with QStackedWidget
    By onírico in forum Newbie
    Replies: 6
    Last Post: 12th November 2009, 16:34
  2. stack widget pages using pushbutton
    By arunvv in forum Newbie
    Replies: 4
    Last Post: 21st March 2008, 11:09
  3. QStackedWidget question
    By hgedek in forum Qt Programming
    Replies: 3
    Last Post: 20th August 2007, 16:36
  4. Replies: 4
    Last Post: 13th August 2007, 15:28
  5. QSplitter and QStackedWidget
    By nikita in forum Qt Programming
    Replies: 4
    Last Post: 15th November 2006, 04:52

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.