Generate Shortcut text page from qml file



  • Hi,

    I have a QML file gathering all my QML Actions with shortcuts. Is there an automatic way to generate an help page containing all the shortcuts?

    Thanks for any help.


  • Moderators

    Hi,

    Can we know what do you mean by the help page ?



  • Hi,

    I did not talked about THE help page. More about "AN" help page. Any generated text file would do it actually.

    My problem is that I am always evaluating and changing shortcuts. If I have to maintain this text file by hand, I will not make it^^'

    If I can generate it from qml files, then it would be easier.

    I know there is doxyqml but this is not really what I am looking for as it is more for source code documentation.

    Thanks for any help.


  • Moderators

    Since you have a qml file which contains all the Action elements, you can use findChildren from c++ to get all the childrens of that qml file and then iterate over it and check for the one's which inherit QQuickAction (not made public; but you can check when using inherit() ). Once the objects are found you get use property() to get the value of shortcut property.


Log in to reply