title: Need full example on this topic: QtWebKit Bridge
body: <p>I am new to Qt and currently I am doing some stuff on this topic: <a href="http://doc.qt.io/archives/qt-4.7/qtwebkit-bridge.html" rel="nofollow">http://doc.qt.io/archives/qt-4.7/qtwebkit-bridge.html</a></p>
  
  <p>What I am trying to do is:</p>
  
  <ol>
  <li><p>create a JS object that maps to a C++ class with many properties and functions.</p></li>
  <li><p>this C++ class could return any JS data types to JS environment.</p></li>
  <li><p>this C++ class could accept any JS data types parameters from JS environment.</p></li>
  </ol>
  
  <p>But I have no idea how to start, so I am wondering are there any full examples.</p>