Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法获取当前选择的选项卡的编号/索引?我有一个标签字典,但我需要能够获得当前活动的一个。
您可以调用currentIndex()TabWidget 以获取当前选定的选项卡。
currentIndex()