Quantcast
Channel: Jobs
Viewing all articles
Browse latest Browse all 18427

[Solved] QTabWidget: how to detect a tab has been added (or removed)

$
0
0
Hi, I sub-classed QTabWidget to hide the tab bar if there is only one tab (tabBar()->hide() and tabBar()->show() work well for that), but my problem is where to check tab count. According to the doc, there is no signal when a tab is added or removed, and when adding or removing a tab, the current selected tab may not change. Maybe by reimplementing an event (but which one)?

Viewing all articles
Browse latest Browse all 18427

Trending Articles