i’ve created a .js file that contains some functions and global variable;
I’m using it with import…as and it works well in that file. I know that a js is stateful in a QML file in fact if i import it in the other ones, the global variable are just setted to zero; well…
my work around is just copy the Component.qml’s code into the main QML (that contains the js import) and it works very well…
I know that i must import only one time and than refer to it in the other QML file, but how???
Thanks to all