I’m trying to implement a screensaver on my application. Every time it’s idle for some time, a video will be played over the app. To accomplish this, I’m using a QTimer that calls a function to play the video every 5 minutes. The problem is that I need to restart that timer with every user click. Currently I’m trying to connect all button clicks of my app with a restarter slot, but it’s clearly not the best approach to accomplish this.
So, how can I grab all mouse events of the system to restart my timer?
I’m trying to implement a screensaver on my application. Every time it’s idle for
Share
You can install an event filter to the QApplication to receive all the events happening on the application