سؤال

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

هل كانت مفيدة؟

المحلول

You are looking for QApplication::focusWidget().

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top