Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. API docs for my CPP properties
Forum Updated to NodeBB v4.3 + New Features

API docs for my CPP properties

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 2 Posters 260 Views 1 Watching
  • 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.
  • TomZT Offline
    TomZT Offline
    TomZ
    wrote on last edited by
    #1

    Hello,

    in a mixed CPP / QML project we have a dozen cpp objects with each of them plenty of properties.

    I personally already have issues that I have to jump to the cpp-header file to read the list of properties there as there is a context switch I don't like. But I'd love to get people that are not familiar with the cpp part to work on the QML files, and there this link doesn't make much sense at all.

    So, I'm wondering how others solve that. Is there a good way to auto-generate some documentation (can be as simple as markdown) pages from my cpp files? Something we can put online.

    Again, this is specifically for the QML user, so only stuff that actually is possible to use from the QML side should be included.

    Thanks!

    sierdzioS 1 Reply Last reply
    0
    • TomZT TomZ

      Hello,

      in a mixed CPP / QML project we have a dozen cpp objects with each of them plenty of properties.

      I personally already have issues that I have to jump to the cpp-header file to read the list of properties there as there is a context switch I don't like. But I'd love to get people that are not familiar with the cpp part to work on the QML files, and there this link doesn't make much sense at all.

      So, I'm wondering how others solve that. Is there a good way to auto-generate some documentation (can be as simple as markdown) pages from my cpp files? Something we can put online.

      Again, this is specifically for the QML user, so only stuff that actually is possible to use from the QML side should be included.

      Thanks!

      sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      @TomZ take a look at doxygen it's the standard solution for generating documentation for Qt projects.

      (Z(:^

      TomZT 1 Reply Last reply
      1
      • sierdzioS sierdzio

        @TomZ take a look at doxygen it's the standard solution for generating documentation for Qt projects.

        TomZT Offline
        TomZT Offline
        TomZ
        wrote on last edited by TomZ
        #3

        @TomZ said in API docs for my CPP properties:

        Again, this is specifically for the QML user, so only stuff that actually is possible to use from the QML side should be included.

        @sierdzio Is there any specific reason you think that it can ignore the C++ API from classes and list only the QML relevant parts?

        The configuration or manual of doxygen doesn't give any indication it is capable of doing so.

        sierdzioS 1 Reply Last reply
        0
        • TomZT TomZ

          @TomZ said in API docs for my CPP properties:

          Again, this is specifically for the QML user, so only stuff that actually is possible to use from the QML side should be included.

          @sierdzio Is there any specific reason you think that it can ignore the C++ API from classes and list only the QML relevant parts?

          The configuration or manual of doxygen doesn't give any indication it is capable of doing so.

          sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          Documentation will only contain what you tell it to contain. If you don't document the C++ internals, they will not end up in the docs.

          (Z(:^

          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