Results 1 to 2 of 2

Thread: Application ScreenSaver

  1. #1
    Join Date
    Mar 2011
    Posts
    82
    Thanks
    13
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Application ScreenSaver

    I need to make a screen saver within a QApplication. I was wondering if there is a way to hook myself to the Application's event filter or something like that, so that I can know how much time has passed since the last event (keypressed, mouse event, whatever).

    So far I have the widget I want to use as screen saver. Now I need to find a way to know "how much time has passed since the last event".

    Any ideas on the subject?

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Application ScreenSaver

    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. How to create screensaver ?
    By Aki Tomar in forum General Programming
    Replies: 4
    Last Post: 1st May 2017, 11:12
  2. QWSServer ScreenSaver
    By webquinty in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 19th May 2016, 18:45
  3. Windows screensaver
    By Darkstar in forum Qt Programming
    Replies: 4
    Last Post: 21st October 2009, 10:44
  4. Stoping the Screensaver.
    By Grimlock in forum Qt Programming
    Replies: 1
    Last Post: 23rd January 2009, 23:30
  5. setting desktop background and screensaver in X11
    By nupul in forum Qt Programming
    Replies: 5
    Last Post: 2nd April 2006, 21:11

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.