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

Documentation is inconsistent wrt QChronoTimer

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.8.1
    • None

    Description

      https://doc.qt.io/qt-6/timers.html seems to have been updated to QChronoTimer from QTimer without checking for subtle differences between the two classes and probably needs a careful review. Things that I noticed:

      • https://doc.qt.io/qt-6/qchronotimer.html has a note that explains why QChronoTimer doesn't have static singleShot() methods - yet https://doc.qt.io/qt-6/timers.html tells that QChronoTimer provides static functions for single-shot timers and gives an example of calling QChronoTimer::singleShot() usage - which won't compile because QChronoTimer actually doesn't have singleShot().
      • I'm not sure the paragraph about accuracy is still up-to-date, as it has no word about target systems that have nanosecond-level accuracy. Either QChronoTimer's precision is yet uncalled for (doubtful), or there are systems that can trigger it with higher than 1ms accuracy and these are worth mentioning.

      Attachments

        For Gerrit Dashboard: QTBUG-133029
        # Subject Branch Project Status CR V

        Activity

          People

            ahmad.samir Ahmad Samir
            alexey.rusakov Alexey Rusakov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There is 1 open Gerrit change