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

Q_DECLARE_LOGGING_CATEGORY Hides Classes for QDoc Generation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • 5.9.6
    • Build tools: qdoc
    • None
    • Linux/Other display system
    • QDoc Sprint 3

    Description

      Q_DECLARE_LOGGING_CATEGORY Hides Classes for QDoc Generation

      If theĀ Q_DECLARE_LOGGING_CATEGORY statement is used in a header file where a class is defined, and a class is documented using QDocs format, the QDocs runner will not find the class definition and therefore will not generate documentation for it.

      See the attached example project. If you remove the statement, qdocs will work fine, otherwise it complains that "warning: Cannot find 'MyClass' specified with '\class' in any header file"

      Attachments

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

        Activity

          People

            gbk Martin Smith (Qt)
            ken.sloat ken.sloat
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes