How do I get the currentTabName from a QTabWidget in Qt?
QTabWidget
has a property currentTabName
.
How can I access currentTabName
by code?
I need to check which tab is selected, but I cannot use the tab text ( tabText
) because it can be translatable and can change, and I donβt want to use the tab index ( currentIndex
) because the index might change in the future.
I am using Qt 5.3
+3
source to share
1 answer