Results 1 to 16 of 16

Thread: Timer to find out if app id idle not working as expected

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts

    Default Re: Timer to find out if app id idle not working as expected

    You are not passing a parent to getInstance() so you are not installing an event filter.

    This all looks really complicated, why all the mutexes?

    Just create the IdleTimer object in main() and install it as an event filter on the Qt application object.

    Btw, there is also http://inqlude.org/libraries/kidletime.html if you want a tested solution.

    Cheers,
    _

  2. The following user says thank you to anda_skoa for this useful post:

    Cupidvogel (29th December 2015)

Similar Threads

  1. MVC - canFetchMore() is not working as expected
    By prasad_N in forum Qt Programming
    Replies: 6
    Last Post: 13th October 2015, 11:41
  2. QDir not working as expected
    By BettaUseYoNikes in forum Qt Programming
    Replies: 2
    Last Post: 24th August 2011, 16:55
  3. Replies: 2
    Last Post: 22nd December 2010, 10:37
  4. keyPressevent not working with timer.
    By T1001 in forum Newbie
    Replies: 5
    Last Post: 9th December 2010, 04:55
  5. QTableView not working as expected.
    By junxuan in forum Qt Programming
    Replies: 7
    Last Post: 30th July 2009, 08:17

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.