@QString script = "var some_var = 5;";
script += "alert(var);";
Now my concern is that some_var is defined globally and I could run into two problems: 1. Collision issues with other methods that create scripts that also have a "some_var" and 2. If I run this function that calls the script that creates "some_var" it is getting created globally over and over again causing memory leak type concerns.
Any answers would be greatly appreciated,