[Qgis-developer] QgsRubberBand 1px shift

Radim Blazek radim.blazek at gmail.com
Wed May 11 14:51:26 EDT 2011


On Mon, May 2, 2011 at 4:31 PM, Martin Dobias <wonder.sk at gmail.com> wrote:
> Oh, I see! This really looks like a bug in x11 paint engine (running
> Qt 4.6.2 here). If you use QImage (raster engine) instead of QPixmap
> you get the expected result (line still on the first row). Also OpenGL
> engine gives correct results.
>
> You may try adding this before creation of QApplication instance:
> QApplication::setGraphicsSystem("raster");

I have postponed this because QApplication::setGraphicsSystem() was
introduced in  Qt 4.5 and we require Qt4.4.

>>> Shouldn't we actually use the antialiasing flag from map canvas
>>> instead of hardcoding antialiasing on? Like that the offset in
>>> rendered map and canvas items should be equal.

I have pushed this.

Radim


More information about the Qgis-developer mailing list