Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Generate Shortcut text page from qml file
Forum Updated to NodeBB v4.3 + New Features

Generate Shortcut text page from qml file

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 921 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.
  • K Offline
    K Offline
    Korchkidu
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by
      #2

      Hi,

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

      157

      1 Reply Last reply
      0
      • K Offline
        K Offline
        Korchkidu
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        • p3c0P Offline
          p3c0P Offline
          p3c0
          Moderators
          wrote on last edited by
          #4

          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.

          157

          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