[Designer] How to make a standalone widget from some subpart of a QMainWindow ?
Qt Creator and other tools
2
Posts
1
Posters
952
Views
1
Watching
-
- I have designed a main window form class => in terms of objects, I get something like :
@whatever [QMainWindow]- centralwidget [QWidget]
+ one_tab [QTabWidget]
+ first_tab [QWidget]
... All the objects of the first_tab@
I now realize that it would be convenient at run time to be able to add new tabs identical to the first one.
=> I would like to design an "autonomous" widget including all the objects of the first tab in order to be able to code something like :
@one_tab->addTab(autonomous_w, QString());@
- centralwidget [QWidget]
How can I easily achieve this (without of course restarting the design from scratch) ?
- I have designed a main window form class => in terms of objects, I get something like :