Qtabwidget problem



  • hi
    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)?


  • Moderators

    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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.