Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Event for QWidget after "back" pressed in Android
Gourmet last edited by Gourmet
I am little weird: if focus is on some QWidget and user presses system "back" button - then will this widget receive any event or signal? Which one?
If this happiness with QMainWindow - it receives close event. What about QWidget?
I think that is the default behavior for everything. Exception may be stuff like QLineEdit that has an active focus and accepts keyPressEvents.
You can either override the
keyPressEventof your top most widget/ or install an event filter on that.
The key you'll have to listen to is the