Hi,
i try to show Google Maps in a QWebView (this works) and to play around with a marker. The html code for the WebView is:
Qt Code:
  1. <html>
  2. <head>
  3. <script type="text/javascript" src="http://www.google.com/jsapi?autoload={'modules':[{name:'maps',version:3,other_params:'sensor=false'}]}"></script>
  4. <script type="text/javascript">
  5. function initialize() {
  6. var latlng = new google.maps.LatLng(-34.397, 150.644);
  7. var myOptions = {
  8. zoom: 8,
  9. center: latlng,
  10. mapTypeId: google.maps.MapTypeId.ROADMAP,
  11. mapTypeControlOptions: {
  12. style: google.maps.MapTypeControlStyle.DROPDOWN_MENU
  13. },
  14. navigationControlOptions: {
  15. style: google.maps.NavigationControlStyle.ZOOM_PAN
  16. },
  17. scaleControl: true
  18. };
  19. var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
  20. var distanceWidget = new DistanceWidget(map);
  21. }
  22.  
  23. function DistanceWidget(map) {
  24. this.set('map', map);
  25. this.set('position', map.getCenter());
  26. var marker = new google.maps.Marker({
  27. draggable: true,
  28. title: 'Move me!'
  29. });
  30. // Bind the marker map property to the DistanceWidget map property
  31. marker.bindTo('map', this);
  32. // Bind the marker position property to the DistanceWidget position
  33. // property
  34. marker.bindTo('position', this);
  35. }
  36. DistanceWidget.prototype = new google.maps.MVCObject();
  37. </script>
  38. </head>
  39.  
  40. <body onload="initialize()">
  41. <div id="map_canvas" style="width: 100%; height: 100%"></div>
  42. </body>
  43. </html>
To copy to clipboard, switch view to plain text mode 

My problem is that in the WebView i can not drag & drop the marker, with the Fancy Browser example of QT its the same.
If I try to load the page with IE, Firefox or Chrome it works as supposed.
Some one know what i can do or where is the problem?

Thanks,
Marc