javascript - How can I call another QtScript .js file from one QtScript .js file -
now can use qscriptengine load , execute test.js file. in 1 of function of test.js i'd call function located in .js file. how do this?
to load qtscript code multiple files need load file using qscriptengine.evaluate(). methods available js environment according rules of js. ie: able access global methods directly.
but if working on big project, suggest use common js implementation in qt. have worked on large project on qtscript , used work great us. here link goes little detail of how can implement in qt.
Comments
Post a Comment