Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to automatically play the video after the window has no operation, click the window to return to the window
Forum Updated to NodeBB v4.3 + New Features

How to automatically play the video after the window has no operation, click the window to return to the window

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 5 Posters 452 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    BETTER
    wrote on last edited by
    #1

    I'm new here。How to automatically play the video after the window has no operation, click the window to return to the window

    jsulmJ JonBJ Pablo J. RoginaP 3 Replies Last reply
    0
    • B BETTER

      I'm new here。How to automatically play the video after the window has no operation, click the window to return to the window

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @BETTER Your explanation is not clear. What do you mean by "window has no operation"?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      3
      • B BETTER

        I'm new here。How to automatically play the video after the window has no operation, click the window to return to the window

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by
        #3

        @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.

        1 Reply Last reply
        1
        • B BETTER

          I'm new here。How to automatically play the video after the window has no operation, click the window to return to the window

          Pablo J. RoginaP Offline
          Pablo J. RoginaP Offline
          Pablo J. Rogina
          wrote on last edited by
          #4

          @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

          Upvote the answer(s) that helped you solve the issue
          Use "Topic Tools" button to mark your post as Solved
          Add screenshots via postimage.org
          Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

          B 1 Reply Last reply
          1
          • Pablo J. RoginaP Pablo J. Rogina

            @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

            B Offline
            B Offline
            BETTER
            wrote on last edited by
            #5

            @Pablo-J-Rogina
            Yes, can you explain how to do it?

            J.HilkJ 1 Reply Last reply
            0
            • B BETTER

              @Pablo-J-Rogina
              Yes, can you explain how to do it?

              J.HilkJ Offline
              J.HilkJ Offline
              J.Hilk
              Moderators
              wrote on last edited by J.Hilk
              #6

              @BETTER
              Take a look at this very similar topic where I provided a minimal compileable example

              https://forum.qt.io/topic/112043/how-to-detect-idle-status/7


              Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


              Q: What's that?
              A: It's blue light.
              Q: What does it do?
              A: It turns blue.

              B 1 Reply Last reply
              1
              • J.HilkJ J.Hilk

                @BETTER
                Take a look at this very similar topic where I provided a minimal compileable example

                https://forum.qt.io/topic/112043/how-to-detect-idle-status/7

                B Offline
                B Offline
                BETTER
                wrote on last edited by
                #7

                @J-Hilk
                Thank you very much. I hope I can ask you some other questions in the future.

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved