<div dir="ltr">Hi<div><br></div><div>I doesn't actually redraw the map ten times though does it? It doesn't seem to for me....</div><div><br></div><div>Regards</div><div><br></div><div>Tim</div></div><div class="gmail_extra">

<br><br><div class="gmail_quote">On Fri, Jan 17, 2014 at 1:09 PM, Radim Blazek <span dir="ltr"><<a href="mailto:radim.blazek@gmail.com" target="_blank">radim.blazek@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

More observations.<br>
<br>
When mouse enters the map canvas, first 10 (unwanted?) paintEvents<br>
are caused by QEvent::HoverMove. Following QEvent::HoverMove events<br>
are not causing additional paintEvents.<br>
<br>
Single QEvent::HoverLeave is followed by 10 paintEvents (QEvent::Paint<br>
- Screen update necessary).<br>
<br>
QEvent::WindowActivate (restore) is also followed by 10 additional (11<br>
in total) paintEvents().<br>
<br>
Setting stylesheet, for example: setStyleSheet(":hover<br>
{background-color: #ff0000;}");<br>
increases the number of paintEvents to 20.<br>
<span class="HOEnZb"><font color="#888888"><br>
Radim<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Thu, Jan 16, 2014 at 8:53 PM, Radim Blazek <<a href="mailto:radim.blazek@gmail.com">radim.blazek@gmail.com</a>> wrote:<br>
> QgsMapCanvas::paintEvent() is called too frequently on my X11, for example:<br>
> - 11 times when mouse enters map canvas (if QGIS does not have focus)<br>
> - 10 times when mouse leaves map canvas<br>
> - 13 times when minimized QGIS is restored<br>
> etc.<br>
><br>
> Does anybody know why and how it could be reduced?<br>
><br>
> Radim<br>
_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Tim Sutton - QGIS Project Steering Committee Member<br>==============================================<br>Please do not email me off-list with technical<br>

support questions. Using the lists will gain<br>more exposure for your issues and the knowledge<br>surrounding your issue will be shared with all.<br><br>Irc: timlinux on #qgis at <a href="http://freenode.net" target="_blank">freenode.net</a><br>

==============================================</div>
</div>