How to automatically play the video after the window has no operation, click the window to return to the window
-
@BETTER
As @jsulm says, you need to clarify what your question really is.play the video after the window has no operation
At some level this sounds like you want to create a (singleshot)
QTimer
. Reset it to start ticking after each "window operation". If the timer expires after a period with no new operation, start playing the video. -
@BETTER said
How to automatically play the video after the window has no operation, click the window to return to the window
My understanding of this brief description is that OP wants to have some kind of screensaver. When no activity is detected in the app, start playing some video, and when a click is detected, stop playing and resume with the app
-
@Pablo-J-Rogina
Yes, can you explain how to do it? -
@BETTER
Take a look at this very similar topic where I provided a minimal compileable examplehttps://forum.qt.io/topic/112043/how-to-detect-idle-status/7