If you want QTabWidget to be part of QMainWindow, then in mainwindow, do this
Qt Code:
setCentralWidget(tabWidget);To copy to clipboard, switch view to plain text mode
And if you have multiple tabs, then create a connection to open the particular tab index based on the button click signal.
Bookmarks