PDA

View Full Version : How to transfer all sub-widgets from one tabbed widget to another dynamically ?



sting
4th June 2012, 11:10
Hi All,

I am a beginner of Qt programming, these days I met a question when using the QTabWidget.
It needs several kinds of widget in one tabbed widget, when the Qt application is running,
if current widget is changed, I demand all the sub-widget in the prior tabbed widget can be
dynamically transferred to current tabbed widget. How to implement it?

I use the setParent() fucntion, but it is useless. Then I try the removeWidget() and
addWidget(), but it failed too.

Please give me some help.

amleto
4th June 2012, 11:25
another one that likes to cross-post. that's rude, isn't it?

http://www.qtforum.org/article/38050/how-to-transfer-all-sub-widgets-from-one-tabbed-widget-to-another-dynamically.html#post119198

sting
5th June 2012, 04:03
sorry about it. now I focus on one forum.