Is there a way in QtS60 to easily capture application foreground events? In S60 it can be done via AppUi::HandleForegroundEventL() but I don't know if it's possible to overload the AppUi handler of a Qt application.
I only need foreground events for my own application, so using CFgrObserver is a little overkill with its SwEvent capability.
I tried using QWidget::changeEvent, but I only get QEvent::ActivationChange events without the ability to distinguish between foreground and background events.
QEvent::ApplicationActivate seems like the logical event to use in this case, but I never observe it in the QWidget::changeEvent slot. I am using a custom widget that draws on a full screen.