[Qgis-developer] python: QgsMapCanvas.enableAntiAliasing(True) has no effect?

Andreas Neumann a.neumann at carto.net
Fri Mar 20 12:55:43 EDT 2009


indeed, with the python-console and the main interface it also works for me.

There must be something wrong with my code ...

Thanks for checking,
Andreas


On Fri, March 20, 2009 4:50 pm, Martin Dobias wrote:
> On Fri, Mar 20, 2009 at 4:00 PM, Andreas Neumann <a.neumann at carto.net>
> wrote:
>> Hi,
>>
>> I am trying to enable antialiasing for my QgsMapCanvas with python.
>>
>> I use
>> previewMap.enableAntiAliasing(True)
>>
>> just after creating the QgsMapCanvas, just after creating it, setting
>> the
>> CanvasColor and the units.
>
> I've just tried calling iface.mapCanvas().enableAntiAliasing() with
> both true and false value from python console and it seems to work for
> me.
>
> martin
>


-- 
Andreas Neumann
http://www.carto.net/neumann/
http://www.svgopen.org/



More information about the Qgis-developer mailing list