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?
QVBoxLayout
QTabWidget::currentIndex() will return the index of the active tab.
QTabWidget::currentIndex()