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

Inaccurate QObject::startTimer documentation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 6.10.0
    • Core: Object Model
    • None

      Quote from QObject::startTimer() :

       

      If interval is equal to std::chrono::duration::zero(), then the timer event occurs once every time there are no more window system events to process. 

      I guess this should be referring to the "event loop" which is not necessarily related to windows system events. E.g. a QObject that has a thread affinity to a QThread other than main thread, or even those in non-GUI applications.

       

      Generally, IMO, the documentation of QObject should describe its relation to the event loop when it's describing  event-handling related functions and the behavior of the class in absence of a running event loop, like as described in QObject::deleteLater()

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

            ahmad.samir Ahmad Samir
            soarmin Soheil Armin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There is 1 open Gerrit change