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

QTimer documentation should mention that negative intervals are not allowed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.2.1
    • Core: Other, Documentation
    • None

    Description

      The following code:

      QTimer t;
      t.start(-1);
      

      Results in the runtime error:

      QObject::startTimer: QTimer cannot have a negative interval
      

      I expected t.start(-1) to behave the same way as t.start(0). The possibility of a runtime error should be documented at http://qt-project.org/doc/qt-5/qtimer.html#interval-prop and http://qt-project.org/doc/qt-5/qobject.html#startTimer

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            alex.henrie Alex Henrie
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes