Details
-
Bug
-
Resolution: Done
-
P2: Important
-
Some future release
-
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.