I’m trying to handle the situation where a user is switching to/from my application.
In other words, I want to know when my application is made the “current” one, or if another app is made “current”, if that makes any sense.
I was thinking that I could use the activeWindowStatusChanged() callback on all my windows, and from there, call the TopLevelWindow::getActiveTopLevelWindow() function. Am I correct in thinking that if getActiveTopLevelWindow() returns 0, my application isn’t “current”?