There are several dock widgets in my Qt 5.1 application. I want to know which tab is currently active (regardless of whether it currently has focus), but I don’t understand how to get this information programmatically.
I tried QWidget :: IsVisible (), QWidget :: IsVisibleTo () and examined the list returned by QMainWindow :: tabifiedDockWidgets (), which excludes the widget sent as a parameter, and therefore cannot provide an order.
Any ideas?
source
share