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

EchoPlugin documentation documents Q_INTERFACES wrongly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.2.0
    • Some future release
    • Documentation
    • None
    • e952f233e6ac9212a9c9d857ce897f5a9676812c

    Description

      http://doc.qt.nokia.com/latest/tools-echoplugin.html says in section "EchoPlugin Class Definition":

      The Q_INTERFACES macro tells Qt which interfaces the class implements. In our case we only implement the EchoInterface. If a class implements more than one interface, they are given as a comma separated list.

      However the example given in http://doc.qt.nokia.com/4.6/qobject.html#Q_INTERFACES suggests that the list is NOT comma separated, but space separated. In fact providing a comma separated list will result in a parse error in moc, with no further indication that a space separated list is required.

      Suggestion: Fix echoplugin docs, specify space separation in Q_INTERFACES docs, add unexpected characters to diagnostic output of moc.

      Attachments

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

        Activity

          People

            mitch_curtis Mitch Curtis
            devurandom Dennis Schridde
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes