Do something when a particular tab is selected
-
In a slot connected to QTabWidget::currentChanged(), if the new current index is the one of interest then start playback. If it is not the index of interest then stop playback.
In a slot connected to QTabWidget::currentChanged(), if the new current index is the one of interest then start playback. If it is not the index of interest then stop playback.