Hi,
I'm trying to rephrase a question more generally that I asked badly a couple of days ago in another thread.
I'm writing a homebrew mapping application to run under Symbian. Since this is a mapping application, I want to ensure the backlight is always-on while the application is being shown.
I've managed to do this OK using QSystemScreenSaver.setScreenSaverInhibit();
However, if the user selects another running application e.g. by selecting the Symbian Home Screen (pushing mine into background), I'd like to reenable the screen saver, and allow the backlight to extinguish.
I believe I can do this by calling 'delete' on my QSystemScreenSaver, however, I can't detect when my application is no longer being shown. I thought that QWidget.showEvent() / QWidget.hideEvent() might be the right thing to use (as per my previous post), but showEvent() seems to get called exactly once (at application startup), and hideEvent() never gets called.
Can anyone advide the correct mechanism to use please ?
Thanks
Rob



