Hi I doesn't actually redraw the map ten times though does it? It doesn't seem to for me....
Regards Tim On Fri, Jan 17, 2014 at 1:09 PM, Radim Blazek <[email protected]>wrote: > More observations. > > When mouse enters the map canvas, first 10 (unwanted?) paintEvents > are caused by QEvent::HoverMove. Following QEvent::HoverMove events > are not causing additional paintEvents. > > Single QEvent::HoverLeave is followed by 10 paintEvents (QEvent::Paint > - Screen update necessary). > > QEvent::WindowActivate (restore) is also followed by 10 additional (11 > in total) paintEvents(). > > Setting stylesheet, for example: setStyleSheet(":hover > {background-color: #ff0000;}"); > increases the number of paintEvents to 20. > > Radim > > On Thu, Jan 16, 2014 at 8:53 PM, Radim Blazek <[email protected]> > wrote: > > QgsMapCanvas::paintEvent() is called too frequently on my X11, for > example: > > - 11 times when mouse enters map canvas (if QGIS does not have focus) > > - 10 times when mouse leaves map canvas > > - 13 times when minimized QGIS is restored > > etc. > > > > Does anybody know why and how it could be reduced? > > > > Radim > _______________________________________________ > Qgis-developer mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/qgis-developer > -- Tim Sutton - QGIS Project Steering Committee Member ============================================== Please do not email me off-list with technical support questions. Using the lists will gain more exposure for your issues and the knowledge surrounding your issue will be shared with all. Irc: timlinux on #qgis at freenode.net ==============================================
_______________________________________________ Qgis-developer mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-developer
