<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
<pre style="line-height: 17px; white-space: normal; color: rgb(42, 42, 42); font-family: 'Segoe UI', Tahoma, Verdana, Arial, sans-serif; font-size: 10pt; ">Hello,</pre><pre style="line-height: 17px; white-space: normal; color: rgb(42, 42, 42); font-family: 'Segoe UI', Tahoma, Verdana, Arial, sans-serif; font-size: 10pt; ">I upgraded recently to PyQt 4.8.2 and noticed that a widget of my application displaying Google Map into a QWebView is not working anymore on Windows : I can't Pan or use the Mouse Scrollwheel.</pre><pre style="line-height: 17px; white-space: normal; color: rgb(42, 42, 42); font-family: 'Segoe UI', Tahoma, Verdana, Arial, sans-serif; font-size: 10pt; ">I was previously using 4.7.3 and had no particular issue.</pre><pre style="line-height: 17px; white-space: normal; color: rgb(42, 42, 42); font-family: 'Segoe UI', Tahoma, Verdana, Arial, sans-serif; font-size: 10pt; ">I would like to add also that the same 4.8.2 release is fine on OSX.</pre><pre style="line-height: 17px; white-space: normal; color: rgb(42, 42, 42); font-family: 'Segoe UI', Tahoma, Verdana, Arial, sans-serif; font-size: 10pt; ">Here is a small snippet to illustrate the problem :</pre><pre style="line-height: 17px; white-space: normal; color: rgb(42, 42, 42); font-family: 'Segoe UI', Tahoma, Verdana, Arial, sans-serif; font-size: 10pt; "><br></pre><pre><pre><font class="Apple-style-span" color="#2A2A2A"><span class="Apple-style-span" style="line-height: 17px; white-space: normal;">import sys</span></font></pre><pre><font class="Apple-style-span" color="#2A2A2A"><span class="Apple-style-span" style="line-height: 17px; white-space: normal;">from PyQt4.QtCore import *</span></font></pre><pre><font class="Apple-style-span" color="#2A2A2A"><span class="Apple-style-span" style="line-height: 17px; white-space: normal;">from PyQt4.QtGui import *</span></font></pre><pre><font class="Apple-style-span" color="#2A2A2A"><span class="Apple-style-span" style="line-height: 17px; white-space: normal;">from PyQt4.QtWebKit import *</span></font></pre><pre><font class="Apple-style-span" color="#2A2A2A"><span class="Apple-style-span" style="line-height: 17px; white-space: normal;"><br></span></font></pre><pre><font class="Apple-style-span" color="#2A2A2A"><span class="Apple-style-span" style="line-height: 17px; white-space: normal;">class WebPage(QWidget):</span></font></pre><pre><font class="Apple-style-span" color="#2A2A2A"><span class="Apple-style-span" style="line-height: 17px; white-space: normal;"><br></span></font></pre><pre><font class="Apple-style-span" color="#2A2A2A"><span class="Apple-style-span" style="line-height: 17px;"><span class="Apple-tab-span" style="white-space:pre">  </span>def __init__(self):</span></font></pre><pre><font class="Apple-style-span" color="#2A2A2A"><span class="Apple-style-span" style="line-height: 17px;"><span class="Apple-tab-span" style="white-space:pre">           </span>QWidget.__init__(self)</span></font></pre><pre><span class="Apple-tab-span" style="white-space: pre; line-height: 17px;"><font class="Apple-style-span" color="#2A2A2A">               </font></span></pre><pre><font class="Apple-style-span" color="#2A2A2A"><span class="Apple-style-span" style="line-height: 17px;"><span class="Apple-tab-span" style="white-space:pre">           </span>self.setWindowTitle("HTML Page")</span></font></pre><pre><span class="Apple-tab-span" style="white-space: pre; line-height: 17px;"><font class="Apple-style-span" color="#2A2A2A">           </font></span></pre><pre><font class="Apple-style-span" color="#2A2A2A"><span class="Apple-style-span" style="line-height: 17px;"><span class="Apple-tab-span" style="white-space:pre">           </span>gridLayout = QGridLayout()<span class="Apple-tab-span" style="white-space:pre">          </span></span></font></pre><pre><span class="Apple-tab-span" style="white-space: pre; line-height: 17px;"><font class="Apple-style-span" color="#2A2A2A">             </font></span></pre><pre><font class="Apple-style-span" color="#2A2A2A"><span class="Apple-style-span" style="line-height: 17px;"><span class="Apple-tab-span" style="white-space:pre">           </span>map = QWebView()</span></font></pre><pre><font class="Apple-style-span" color="#2A2A2A"><span class="Apple-style-span" style="line-height: 17px;"><span class="Apple-tab-span" style="white-space:pre">              </span>map.load( QUrl( "http://thomasmansencal.com/Sharing/Others/Google_Maps.html" ) )</span></font></pre><pre><font class="Apple-style-span" color="#2A2A2A"><span class="Apple-style-span" style="line-height: 17px;"><span class="Apple-tab-span" style="white-space:pre">            </span>gridLayout.addWidget( map )</span></font></pre><pre><span class="Apple-tab-span" style="white-space: pre; line-height: 17px;"><font class="Apple-style-span" color="#2A2A2A">  </font></span></pre><pre><font class="Apple-style-span" color="#2A2A2A"><span class="Apple-style-span" style="line-height: 17px;"><span class="Apple-tab-span" style="white-space:pre">           </span>self.setLayout(gridLayout)</span></font></pre><pre><font class="Apple-style-span" color="#2A2A2A"><span class="Apple-style-span" style="line-height: 17px; white-space: normal;"><br></span></font></pre><pre><font class="Apple-style-span" color="#2A2A2A"><span class="Apple-style-span" style="line-height: 17px; white-space: normal;">app = QApplication(sys.argv)</span></font></pre><pre><font class="Apple-style-span" color="#2A2A2A"><span class="Apple-style-span" style="line-height: 17px; white-space: normal;">webPage = WebPage()</span></font></pre><pre><font class="Apple-style-span" color="#2A2A2A"><span class="Apple-style-span" style="line-height: 17px; white-space: normal;">webPage.show()</span></font></pre><pre><font class="Apple-style-span" color="#2A2A2A"><span class="Apple-style-span" style="line-height: 17px; white-space: normal;">sys.exit(app.exec_())</span></font></pre><pre><font class="Apple-style-span" color="#2A2A2A"><span class="Apple-style-span" style="line-height: 17px; white-space: normal;"><br></span></font></pre><pre><font class="Apple-style-span" color="#2A2A2A"><span class="Apple-style-span" style="line-height: 17px; white-space: normal;">and the code of the html file :</span></font></pre><pre><font class="Apple-style-span" color="#2A2A2A"><span class="Apple-style-span" style="line-height: 17px; white-space: normal;"><br></span></font></pre><pre><font class="Apple-style-span" color="#2A2A2A"><pre><span class="Apple-style-span" style="line-height: 17px; white-space: normal;"><html></span></pre><pre><span class="Apple-style-span" style="line-height: 17px; white-space: normal;">    <head></span></pre><pre><span class="Apple-style-span" style="line-height: 17px; white-space: normal;">        <meta name="viewport" content="initial-scale=1.0, user-scalable=no" /></span></pre><pre><span class="Apple-style-span" style="line-height: 17px; white-space: normal;">        <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></span></pre><pre><span class="Apple-style-span" style="line-height: 17px; white-space: normal;">        </script></span></pre><pre><span class="Apple-style-span" style="line-height: 17px; white-space: normal;">        <script type="text/javascript"></span></pre><pre><span class="Apple-style-span" style="line-height: 17px; white-space: normal;">            var map;</span></pre><pre><span class="Apple-style-span" style="line-height: 17px; white-space: normal;">            var markers = [];</span></pre><pre><span class="Apple-style-span" style="line-height: 17px; white-space: normal;">            var defaultLocation = new google.maps.LatLng(50, 0);</span></pre><pre><span class="Apple-style-span" style="line-height: 17px; white-space: normal;">            var defaultZoomLevel = 2</span></pre><pre><span class="Apple-style-span" style="line-height: 17px; white-space: normal;">            </span></pre><pre><span class="Apple-style-span" style="line-height: 17px; white-space: normal;">            function initialize()</span></pre><pre><span class="Apple-style-span" style="line-height: 17px; white-space: normal;">            {</span></pre><pre><span class="Apple-style-span" style="line-height: 17px; white-space: normal;">            <span class="Apple-tab-span" style="white-space:pre">     </span>var myOptions = </span></pre><pre><span class="Apple-style-span" style="line-height: 17px; white-space: normal;">            <span class="Apple-tab-span" style="white-space:pre">   </span>{</span></pre><pre><span class="Apple-style-span" style="line-height: 17px; white-space: normal;">            <span class="Apple-tab-span" style="white-space:pre">               </span>zoom: defaultZoomLevel,</span></pre><pre><span class="Apple-style-span" style="line-height: 17px; white-space: normal;">            <span class="Apple-tab-span" style="white-space:pre">         </span>center: defaultLocation,</span></pre><pre><span class="Apple-style-span" style="line-height: 17px; white-space: normal;">            <span class="Apple-tab-span" style="white-space:pre">                </span>disableDefaultUI: true,</span></pre><pre><span class="Apple-style-span" style="line-height: 17px; white-space: normal;">            <span class="Apple-tab-span" style="white-space:pre">         </span>mapTypeId: google.maps.MapTypeId.ROADMAP</span></pre><pre><span class="Apple-style-span" style="line-height: 17px; white-space: normal;">            <span class="Apple-tab-span" style="white-space:pre">        </span>};</span></pre><pre><span class="Apple-style-span" style="line-height: 17px; white-space: normal;">            <span class="Apple-tab-span" style="white-space:pre">      </span>map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);</span></pre><pre><span class="Apple-style-span" style="line-height: 17px; white-space: normal;">            }</span></pre><pre><span class="Apple-style-span" style="line-height: 17px; white-space: normal;">        </script></span></pre><pre><span class="Apple-style-span" style="line-height: 17px; white-space: normal;">    </head></span></pre><pre><span class="Apple-style-span" style="line-height: 17px; white-space: normal;">    <body onload="initialize()"></span></pre><pre><span class="Apple-style-span" style="line-height: 17px; white-space: normal;">        <div id="map_canvas" style="width:100%; height:100%"></span></pre><pre><span class="Apple-style-span" style="line-height: 17px; white-space: normal;">        </div></span></pre><pre><span class="Apple-style-span" style="line-height: 17px; white-space: normal;">    </body></span></pre><pre><span class="Apple-style-span" style="line-height: 17px; white-space: normal;"></html></span></pre><div style="line-height: 17px; white-space: normal; "><br></div><div style="line-height: 17px; white-space: normal; ">Can someone confirm he has also a problem with this snippet and PyQt 4.8.2 ?</div><div style="line-height: 17px; white-space: normal; "><br></div><div style="line-height: 17px; white-space: normal; ">Thanks,</div><div style="line-height: 17px; white-space: normal; "><br></div><div style="line-height: 17px; white-space: normal; ">Thomas</div></font></pre></pre>                                     </body>
</html>