Question

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

Was it helpful?

Solution

You are looking for QApplication::focusWidget().

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top