Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-interest Archive, June 2007
about QStackedWidget's layout


Message 1 in thread

Hello,
I create a QStackedWidget and add a few page widget to it. Then when I try
to add QLayout to any page widget, warnings always come out:
QLayout: Attempting to add QLayout "" to QWidget "", which already has a
layout
What's the problem?
Thanks.
Regrds
Fengli


-- 
 [ signature omitted ] 

Message 2 in thread

Try adding the layout before adding the page to the stacked widget

 

________________________________

From: 张凤丽 [mailto:zhangfenglisdu@xxxxxxxxx] 
Sent: Sunday, June 03, 2007 4:55 AM
To: qt-interest
Subject: about QStackedWidget's layout

 

Hello,
I create a QStackedWidget and add a few page widget to it. Then when I try to add QLayout to any page widget, warnings always come out:
QLayout: Attempting to add QLayout "" to QWidget "", which already has a layou t
What's the problem?
Thanks.
Regrds
Fengli


-- 
 [ signature omitted ]