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

QTimer::singleShot: const mismatch between docs and reality

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.9.1
    • Documentation
    • None

      The documentation for this overload of singleShot says that the context parameter is a const pointer:

      void QTimer::singleShot(int msec, Qt::TimerType timerType, const QObject *context, Functor functor)

      In fact it is not const in the actual declaration. There's a mismatch in the header file between the #ifdef Q_QDOC / #else declarations.

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

            docteam Qt Documentation Team
            nicholasbishop Nicholas Bishop
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes