Hi,
I have 3 file, 2 QML and 1 JS.
JS:
Qt Code:
.pragma library var totaltxt = 0; function totFunc(){ totaltxt = totaltxt + 1; }To copy to clipboard, switch view to plain text mode
and first QML file includes text: Logic.totaltxt and so, it shows "0" as what we expect. However, although other QML file includes Logic.totFunc(); , it doesn't work. I mean, when second qml works, I expect new value must be 1 instead of zero.
I did all imports to do files.
Any idea?
Bookmarks