[SOLVED] Returning QWebKit values
-
I'm with a code in Javascript/jQuery that returns me the position of my mouse inside of content.
@$('#area').mousemove(function(e){
var mousePos = {'x': e.layerX, 'y': e.layerY};
return mousePos;
});@I wonder how these values always return to the application. For example, when you move the mouse in the content and it returns a value, he sends it to the application and display in a QLabel.
Thanks.
Solved! I can do this using addToJavaScriptWindowObject.
Thanks.