Search code examples
c++qtfocusqwidget

How to return QWidget that currently has focus


Is there a simple way to find which QWidget currently has focus in Qt?


Solution

  • You are looking for QApplication::focusWidget().