[SOLVED] Returning QWebKit values

  • I'm with a code in Javascript/jQuery that returns me the position of my mouse inside of content.

    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.



    Solved! I can do this using addToJavaScriptWindowObject.


Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.