Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

[QML]javascript global "this"

$
0
0
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

Viewing all articles
Browse latest Browse all 4972

Latest Images

Trending Articles



Latest Images