Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    [SOLVED] Returning QWebKit values

    General and Desktop
    1
    1
    568
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      beowulf last edited by

      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.

      @edit

      Solved! I can do this using addToJavaScriptWindowObject.

      Thanks.

      -- 0x00

      1 Reply Last reply Reply Quote 0
      • First post
        Last post