For some reason, if you write a JS function inside a QML document the extensions won't work. But if you write a separated Javascript document, and you create your functions there it will work.

Should I write this down at this article?

19:32, 22 February 2015