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: QML Files with same name not possible (warning: Overrides a previous doc)
Forum Updated to NodeBB v4.3 + New Features

QDoc: QML Files with same name not possible (warning: Overrides a previous doc)

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
2 Posts 2 Posters 276 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.
  • qmluserQ Offline
    qmluserQ Offline
    qmluser
    wrote on last edited by
    #1

    Is there a way to prevent files with the same name in different modules and different directories from being interpreted as the same entity and overridden using QDoc with QML?

    Some QML files in the project have the same name and the same \qmltype but have a different \inqmlmodule and are located in different directories. Nevertheless these files seem to be interpreted as the same entity during generation. The warning: Overrides a previous doc is being thrown. Docs for the modules are being generated correctly but all link to the alphabetically last QML file with the same name. This is the file that has overridden the others. Is this really as intended?

    Changing the filenames solves the issue - but is not an option.
    Changing the \qmltype in the QDoc comment has no effect but would also admittedly be strange even if it did.

    Much obliged!

    Christian EhrlicherC 1 Reply Last reply
    0
    • qmluserQ qmluser

      Is there a way to prevent files with the same name in different modules and different directories from being interpreted as the same entity and overridden using QDoc with QML?

      Some QML files in the project have the same name and the same \qmltype but have a different \inqmlmodule and are located in different directories. Nevertheless these files seem to be interpreted as the same entity during generation. The warning: Overrides a previous doc is being thrown. Docs for the modules are being generated correctly but all link to the alphabetically last QML file with the same name. This is the file that has overridden the others. Is this really as intended?

      Changing the filenames solves the issue - but is not an option.
      Changing the \qmltype in the QDoc comment has no effect but would also admittedly be strange even if it did.

      Much obliged!

      Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @qmluser said in QDoc: QML Files with same name not possible (warning: Overrides a previous doc):

      Changing the filenames solves the issue - but is not an option.

      That's the only way. Or provide a patch for QDoc.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      1

      • Login

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