c++qtqvboxlayout

How to know which tab is selected in Qt?


I have multiple tabs in an application using Qt and I add them all to a QVBoxLayout object. How to know which one is selected?


Solution

  • QTabWidget::currentIndex() will return the index of the active tab.