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. QML QDoc grouping property into one explanation
QtWS25 Last Chance

QML QDoc grouping property into one explanation

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
qdocqmlqt quickgroup propertie
4 Posts 2 Posters 727 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.
  • T Offline
    T Offline
    The friendly stranger
    wrote on last edited by The friendly stranger
    #1

    Hi everyone!

    I have made my documentation for my qml library. It works well but I am missing a minor feature.

    Is it possible to group my explanation for several properties at the same time ? For instance, I want to do the same as Item from QtQuick with the childrenRect properties.

    0e556cc1-264d-4f18-a610-d8f38bcaad54-image.png

    \group and \ingroup aren't made for that purpose so I don't know which keyword I should use. I already read the Qt doc but I probably missed what I am looking for.

    Thank you and have a good day!

    1 Reply Last reply
    0
    • GrecKoG Offline
      GrecKoG Offline
      GrecKo
      Qt Champions 2018
      wrote on last edited by
      #2

      It seems that before you needed to use \qqmlpropertygroup but it appears to not be necessary anymore : https://codereview.qt-project.org/c/qt/qtquickcontrols2/+/320620 (since Qt 5.13). Here is an example of a group property without it : https://github.com/qt/qtquickcontrols2/blob/HEAD/src/quicktemplates2/qquickrangeslider.cpp#L827-L834

      T 1 Reply Last reply
      1
      • GrecKoG GrecKo

        It seems that before you needed to use \qqmlpropertygroup but it appears to not be necessary anymore : https://codereview.qt-project.org/c/qt/qtquickcontrols2/+/320620 (since Qt 5.13). Here is an example of a group property without it : https://github.com/qt/qtquickcontrols2/blob/HEAD/src/quicktemplates2/qquickrangeslider.cpp#L827-L834

        T Offline
        T Offline
        The friendly stranger
        wrote on last edited by The friendly stranger
        #3

        @GrecKo said in QML QDoc grouping property into one explanation:

        \qqmlpropertygroup

        Thank you for your answer. From what I read, I understand that you can make a group only if my properties belong to the same object (for instance childrenRect or first/second with the rangeSlider).

        In my case, I have 2 separated properties but I would like to have the same result on the doc. Using you example, I tried this:

        /*! 
            \qmlproperty QtObject MyModule::MyControl::axisX
            \qmlproperty QtObject MyModule::MyControl::axisY
        	
            axisX and axisY are QtObjects that use the following properties ...
        */
        	property var axisX: null;
        	property var axisY: null;
        

        and I got
        a3e3151e-d0e0-49d8-922b-0e82e4817527-image.png

        My explanations are repeated for each variable. Honestly, I can live with this result but I am all opened for a solution in case I make a long documentation

        1 Reply Last reply
        0
        • T Offline
          T Offline
          The friendly stranger
          wrote on last edited by
          #4

          Still looking for a solution

          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