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. Looking for a basic stopwatch

Looking for a basic stopwatch

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 513 Views
  • 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.
  • C Offline
    C Offline
    Circuits
    wrote on last edited by
    #1

    Does Qt have a basic stopwatch? Something like:

    start(1000);
    //logic to flip a bool or something..
    stop();
    
    JonBJ 1 Reply Last reply
    0
    • C Circuits

      Does Qt have a basic stopwatch? Something like:

      start(1000);
      //logic to flip a bool or something..
      stop();
      
      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @Circuits
      Googling for qt stopwatch would give you several examples.
      Not even sure what your code is supposed to represent as the behaviour, but Qt has as many timers as you will want.

      1 Reply Last reply
      0
      • mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi
        yes
        https://doc.qt.io/qt-5/qelapsedtimer.html

        C 1 Reply Last reply
        4
        • mrjjM mrjj

          Hi
          yes
          https://doc.qt.io/qt-5/qelapsedtimer.html

          C Offline
          C Offline
          Circuits
          wrote on last edited by
          #4

          @mrjj Perfect thanks!

          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