Results 1 to 14 of 14

Thread: A large number of Qtimers and guarantee of clicks.

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Feb 2011
    Location
    Bangalore
    Posts
    207
    Thanks
    20
    Thanked 28 Times in 27 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: A large number of Qtimers and guarantee of clicks.

    Quote Originally Posted by Lesiok View Post
    I think the logic of your application is not valid.
    Let's take an example: 2000 clock with a period of 1 s which gives 2000 signals per second. Suppose that a signal service time is 5 ms which gives 10 seconds of time to support the 2000 event. During the 10 seconds You have received 20,000 signals and serviced only 2000. How do you imagine the proper operation of the program?
    That looks a very valid argument. I think I should stick to old idea of having a single timer managing all the timeouts. Most of 'em happen at around the same time anyway.


    Added after 11 minutes:


    Quote Originally Posted by wysota View Post
    No, it means that if a timer has an interval of X miliseconds but the program is executing some function (related or unrelated to the timer) that takes more than X miliseconds (e.g. 2x X) then a timeout might be discarded.
    If I understand correctly then the event loop of application is a kind of a endless loop.As described in this document http://doc.qt.digia.com/qq/qq11-events.html. So it is kind of always in a function?? Do you mean if it takes 2x ms in a single function? Or if the event queue is not empty?
    Last edited by pkj; 26th October 2012 at 11:11.

Similar Threads

  1. Replies: 5
    Last Post: 24th October 2011, 14:22
  2. How to efficiently display a large number of QPixmaps?
    By ChiliPalmer in forum Qt Programming
    Replies: 3
    Last Post: 4th April 2011, 01:25
  3. Replies: 4
    Last Post: 18th August 2009, 19:53
  4. QScrollArea not displaying large number of images
    By lpkincaid in forum Qt Programming
    Replies: 1
    Last Post: 31st May 2009, 09:58
  5. import large number of images
    By sriluyarlagadda in forum Qt Programming
    Replies: 5
    Last Post: 15th May 2008, 10:26

Tags for this Thread

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.