<div dir="auto"><div>Thx Nyall, I was just trying QgsMapRendererSequentialJob and it works fine.</div><div dir="auto">I was taking the code from an old plugin from mine...</div><div dir="auto"><br></div><div dir="auto">giovanni<br><div class="gmail_extra" dir="auto"><br><div class="gmail_quote">Il 2 mar 2017 22:46, "Nyall Dawson" <<a href="mailto:nyall.dawson@gmail.com">nyall.dawson@gmail.com</a>> ha scritto:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="quoted-text">On 3 March 2017 at 07:11, G. Allegri <<a href="mailto:giohappy@gmail.com">giohappy@gmail.com</a>> wrote:<br>
> Looking into QgsMapRenderer it looks like rotation is never used during<br>
> rendering. It's not passed in any way to the layers during the rendering<br>
> phase.<br>
><br>
> I guess it's used (in other ways) only for canvas rendering...<br>
><br>
> How should a renderer rotate contents during image rendering? Should I apply<br>
> the rotation directly on the QPainter (painter.rotate())?<br>
><br>
<br>
</div>QgsMapRenderer is very old and was removed in QGIS 3.0. Its<br>
replacement is QgsMapRendererJob with use of QgsMapSettings for the<br>
map parameters.<br>
<br>
If you use QgsMapSettings with setRotation this should work without issue.<br>
<font color="#888888"><br>
Nyall<br>
</font></blockquote></div><br></div></div></div>