Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
mahdisaj last edited by
i have a qtabwidget with 2 tabs. tab1 and tab2.
i have a qpushbutton and a qlabel.
how can i add button only to tab1(not tab2) and add label only to tab2(not tab1)?
koahnig last edited by
welcome to devnet
The question is how you generate those tabs?
If you generate and populate one tab and make a copy of this tab, you will have the same contents.
However, each tab may be populated independently.
When using the designer and place a QTabWidget it will have already two tabs. Pull the QPushButton on to the first tab. Switch to the second one and pull the QLabel on to this one.