You are looking for QApplication::focusWidget().
How to return QWidget that currently has focus
Question
Is there a simple way to find which QWidget
currently has focus in Qt?
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow