Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-21295

Documentation for QElapsedTimer::isValid() is wrong

XMLWordPrintable

      The docs for QElapsedTimer::isValid() state the following:
      "Returns true if this object was invalidated by a call to invalidate() and has not been restarted since."

      This is actually false. isValid() returns true if the timer is running right now. It returns false if the timer has not been started or invalidate() has been called without restarting it.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            teemukat Teemu Katajisto (Inactive)
            aberres Armin Berres
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes