title: Qt and JavaScript mapping data
body: <p>What is the correct way to map Qt data types in JavaScript. I pass a Qt object to JavaScript that I load in the QWebView control. It's not a problem to call an object method from JavaScript if there's no parameters buf if a method has parameters the code doesn't work. For example I have the structure Location:</p>
  
  <pre><code>struct Location
  {
      QString country;
      QString city;
  };
  </code></pre>
  
  <p>I have the method:</p>
  
  <pre><code>void UpdateLocation(const Location&amp; location);
  </code></pre>
  
  <p>How to call this method from JavaScript?</p>