Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Qdoc - conditional generation



  • Hi all,
    I would like to know if it's possibile to have a conditional generation with qdoc.
    I've tried as follows, but it doesn't work.

    @
    #if defined(COND_VAR)
    /*!
    Something happens.
    /
    #else
    /
    !
    Nothing happens.
    */
    #endif
    @

    The condition variable, COND_VAR, has been defined as usual using the macro define.
    I've had this problem by reviewing the documentation of Qt5.
    Unfortunately, each part has been parsed by qdoc.

    Any suggestions?
    Thanks.


Log in to reply