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. Millisecond timer with pause (QTime)

Millisecond timer with pause (QTime)

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 2.4k 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.
  • T Offline
    T Offline
    Timmoth
    wrote on last edited by
    #1

    Hi all, i need a millisecond timer with the ability to pause and resume.

    It appears that QTime does not have the ability to pause which is a shame, so i tried to create my own pause facility which did not work.
    i basically stored the elapsed time when paused:
    @Time = myTimer->elapsed();@
    and when resumed i set the time to Time:
    @myTimer->setHMS(0,0,0,Time);@

    this doesnt work and i am wondering if there is any other way for my to implement Pause on a timer?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mbnoimi
      wrote on last edited by
      #2

      It sounds may helps you: http://qt-project.org/forums/viewthread/26165

      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