Unfortunately, your .js file cannot use this.
You have two options:
Put the code inside your QML window component itself, OR
Give your JS function a var argument, and pass your window into the JS function.
This page might help: http://stackoverflow.com/questions/19782933/how-to-pass-this-from-a-qml-element-to-a-js-function
↧









