You are looking for QApplication::focusWidget().
How to return QWidget that currently has focus
سؤال
Is there a simple way to find which QWidget
currently has focus in Qt?
المحلول
لا تنتمي إلى StackOverflow
سؤال
Is there a simple way to find which QWidget
currently has focus in Qt?
المحلول
You are looking for QApplication::focusWidget().