QtScript from diffrent files. How use script form diffrent files?
Hi!
I create app with QtScript support. And I need to use script from diffrent files!
For example I have two script files: 1.qs, 2.qs.
and I need to use some function from script file 1.qs in 2.qs file.
How to do it?
Re: QtScript from diffrent files. How use script form diffrent files?
You need to evaluate 1.qs before you evaluate 2.qs (on the same engine). You can implement an "include" function that will load and evaluate 1.qs and call it from 2.qs.