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. What JS functions are available in Qt Creator Wizards? Where's the documentation?
QtWS25 Last Chance

What JS functions are available in Qt Creator Wizards? Where's the documentation?

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
5 Posts 4 Posters 1.7k 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.
  • shaveraS Offline
    shaveraS Offline
    shavera
    wrote on last edited by
    #1

    If you're adding a new template / wizard to Qt Creator, you'll see that existing ones have several calls to JS: <something>. Sometimes those are pretty trivial statements to evaluate, but other times, they're things like: Util.preferredSuffix('text/x-c++src') or Cpp.classToFileName. are these any sort of standard JS libraries? or are their sources somewhere available? The 'wizard' documentation just shows that they're used but doesn't give any information as to how to use them.

    1 Reply Last reply
    0
    • R Offline
      R Offline
      RangerQT
      wrote on last edited by
      #2

      I would love to know, too.

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        I'd take a look at Qt Creator's sources to see what's in there. You can clone it from git here

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • R Offline
          R Offline
          RangerQT
          wrote on last edited by
          #4

          Yes, that's an option but hopefully they will get the documentation written. Digging through the source is one way to get the info but it's not very productive but until the docs are done it may be the only way.

          1 Reply Last reply
          0
          • K Offline
            K Offline
            kuba
            wrote on last edited by
            #5

            This StackOverflow question addresses this: http://stackoverflow.com/q/43763488/1329652

            There's no documentation, but if you grep for registerQObjectForJs you'll find them all. The answer to the SO question contains a current list of all the global objects and their methods.

            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