I use the events QEvent::ApplicationActivate
and QEvent::ApplicationDeactivate
to show/hide some part of my app when needed.
But now, thoses events are flagged as deprecated :
This enum has been deprecated. Use ApplicationStateChange instead.
So I tried to switch to this event. It is triggered when it should, but I can't find a way to get the application state with some sort of cast or any getters.
Any ideas ?