<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Rendering animated svg]]></title><description><![CDATA[<p dir="auto">I have a simple animated svg (xml ?) file that i would like to display on screen.</p>
<p dir="auto">I created a <code>QSvgRenderer</code> and checked with <code>QSvgRenderer::isValid</code>, but now how can i pass that to say an existing <code>QWidget</code> placed with designer ?</p>
<p dir="auto">The doc says: <code>Once you have loaded the SVG file successfully, you can render it with the QSvgRenderer::render function. Note that this scheme allows you to render SVG files on all paint devices supported by Qt, including QWidget</code></p>
<p dir="auto">But i can't pass a <code>QWidget</code> to <code>QSvgRenderer::render</code>, i get an error: <code>no matching function for call to 'QSvgRenderer::render(QWidget*&amp;)'</code></p>
]]></description><link>https://forum.qt.io/topic/99741/rendering-animated-svg</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 12:40:53 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/99741.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 15 Feb 2019 17:39:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Rendering animated svg on Fri, 15 Feb 2019 19:47:00 GMT]]></title><description><![CDATA[<p dir="auto">Ok i found a way to do it, i promoted my <code>QWidget</code> into a <code>QSvgWidget</code> and used the <code>QSvgWidget::load</code> function.</p>
]]></description><link>https://forum.qt.io/post/511777</link><guid isPermaLink="true">https://forum.qt.io/post/511777</guid><dc:creator><![CDATA[reonZ]]></dc:creator><pubDate>Fri, 15 Feb 2019 19:47:00 GMT</pubDate></item></channel></rss>