Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Solved Looking for a basic stopwatch

    General and Desktop
    3
    4
    291
    Loading More Posts
    • 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
      Circuits last edited by

      Does Qt have a basic stopwatch? Something like:

      start(1000);
      //logic to flip a bool or something..
      stop();
      
      JonB 1 Reply Last reply Reply Quote 0
      • JonB
        JonB @Circuits last edited by

        @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 Reply Quote 0
        • mrjj
          mrjj Lifetime Qt Champion last edited by

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

          C 1 Reply Last reply Reply Quote 4
          • C
            Circuits @mrjj last edited by

            @mrjj Perfect thanks!

            1 Reply Last reply Reply Quote 0
            • First post
              Last post