Ok, thanks David, that was my doubt :)<br><br>Cheers.<br><br><div><span class="gmail_quote">2007/8/3, David Boddie &lt;<a href="mailto:david@boddie.org.uk">david@boddie.org.uk</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Fri Aug 3 14:26:38 BST 2007, Gustavo A. Díaz wrote:<br><br>&gt; By the way David, anywhere i use SVG images i must render it first?<br>&gt; And i think yes, cause when i use directly a SVG image that contain shadows<br>
&gt; or transparency, does not look good.<br><br>In places where you can only use pixmaps, you will need to render the SVG to<br>an image first. There are places where you can load an SVG and not worry<br>about that - when you use QIcon for icons, for example.
<br><br>&gt; Which are the steps to render? i must load the SVG image with QSvgRenderer<br>&gt; and then reder with it too?<br><br>One nice way of doing this is to use QIcon, though QSvgRenderer might be<br>better in certain situations. Creating a pixmap from an icon that contains
<br>an SVG drawing is quite simple:<br><br>&nbsp;&nbsp;icon = QIcon(path_to_svg_file)<br>&nbsp;&nbsp;pixmap = icon.pixmap(width, height)<br><br>The good thing about this is that you only need to load the SVG drawing once.<br><br>Of course, if you just want to display an SVG drawing, you can use QSvgWidget
<br>instead.<br><br>David<br><br>_______________________________________________<br>PyQt mailing list&nbsp;&nbsp;&nbsp;&nbsp;<a href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br><a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt">
http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br></blockquote></div><br><br clear="all"><br>-- <br>Gustavo A. Díaz<br>GDNet Projects<br><a href="http://www.gdnet.com.ar">www.gdnet.com.ar</a>