0

Using Event/Callback so far I have only been able to get the index...How do I get the name of the tab?

self.tabWidget.currentChanged.connect(self.change_sheet)

def change_sheet(self,signal):
      print(self.tabWidget.currentIndex())
ScottCov
  • 29
  • 4

1 Answers1

0

Here is how to do it in C++ : https://stackoverflow.com/a/34604817/11384184
The translation to Python will be simple :

name = self.tabWidget.tabText(self.tabWidget.currentIndex())
Lenormju
  • 4,078
  • 2
  • 8
  • 22