Home > other >  Qt programming use qtabwidget, a component needs to have shown on each page? How to set in qt design
Qt programming use qtabwidget, a component needs to have shown on each page? How to set in qt design

Time:01-14

In qt designer design have 3 labels, tab1, tab2, tab3 add a label, automatically generated code labelA=new QLabel (tab1) how will the labelA can in each TAB can show? thank you

CodePudding user response:

If haven't solve,,,, must to create duplicate parts on each page?

CodePudding user response:

Nobody reason I, ~ ~ ~ ~ ~ ~ ~ ~

CodePudding user response:

Tabwidget outside to set a widget, outside the widget inside put the common control TAB

CodePudding user response:

Refer to the third floor shiroki published in my 2009-06-23: tabwidget outside to set a widget, put the common control TAB widget that is not blocked inside the outside?

CodePudding user response:

Have a ways to do: is the need of public control's parent object is specified for (Tabwidget), such as: Tabwidget=new QTabWidget (this) it is Tabwidget object, and then control the need for public specified (Tabwidget) button=new QpushButton (Tabwidget)
  • Related