PDA

View Full Version : Shared widget by pages in a QStackedWidget



ouekah
6th March 2010, 16:38
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 ?

aamer4yu
7th March 2010, 11:01
Please avoid multiple posts. Main post (http://www.qtcentre.org/threads/28717-Shared-widget-by-pages-in-a-QStackedWidget?p=135222&highlight=#post135222)