Results 1 to 5 of 5

Thread: Total time in QTimer

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2009
    Posts
    14
    Thanks
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default Total time in QTimer

    Hi all,

    i am using QTimer, what i want to do is to have a total time, for example 10 minutes and in these 10 minutes, do something every 5 seconds. I know how to put the interval os 5 seconds, but i don´t know how to control that QTimer lasts 10 minutes, and after 10 minutes its stop.

    And also how can i store in which interval i am, because what i want to store is the value of a variable in each interval, so i need the interval, and i don´t know how to get it

    Thank very much.
    Last edited by martisho; 11th November 2009 at 14:11.

Similar Threads

  1. QTimer stops after system time change
    By djurodrljaca in forum Qt Programming
    Replies: 3
    Last Post: 1st May 2009, 20:36
  2. Problem wit QTimer, different time, why?
    By perseo in forum Qt Programming
    Replies: 6
    Last Post: 8th August 2008, 09:41
  3. How to constantly refresh time on a view
    By salmanmanekia in forum Qt Programming
    Replies: 5
    Last Post: 23rd June 2008, 12:44
  4. QDateTime GMT add sec. or - sec. from locale time....
    By patrik08 in forum Qt Programming
    Replies: 2
    Last Post: 20th February 2007, 16:39
  5. Replies: 6
    Last Post: 17th March 2006, 17:48

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.