[SOLVED] QWSScreenSaver: How to ignore key/mouse presses?
Hi all!
I just implemented a screen saver based on QWSScreenSaver and noticed it doesn't swallow the restoring key or mouse clocks by default, thus they are promoted to the underlying widgets that have just become visible; this behaviour is usually not wanted.
I looked for a straightforward method to suppress these events, but all I was able to come up with was installing an eventFilter on QApplication::instance() to intercept the events in my class and ignore them (this implies deriving my screen saver from QObject). After this has happened the filter is removed, until the next time. This works acceptably, however I've got the feeling that there should be a more elegant way. Does anyone have any ideas?
Thanks!
This post has been edited 1 times, last edit by "Murphy" (Jun 27th 2012, 1:55pm) with the following reason: Set solved flag.