Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qdoc - conditional generation
Forum Update on Monday, May 27th 2025

Qdoc - conditional generation

Scheduled Pinned Locked Moved Qt Creator and other tools
1 Posts 1 Posters 1.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    skypjack
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved