I want to do something similer to following code:
//test.qml
import QtQuick 1.0
Item
{
var globalforJs =10;
function increment() // JavaScript function
{
globalforJs++;
}
....
QML Code
Can we have global variable in QML file
and access it from the JavaScript function?