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