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

QTimer::singleShot: const mismatch between docs and reality

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes