Rendering animated svg
-
I have a simple animated svg (xml ?) file that i would like to display on screen.
I created a
QSvgRendererand checked withQSvgRenderer::isValid, but now how can i pass that to say an existingQWidgetplaced with designer ?The doc says:
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 QWidgetBut i can't pass a
QWidgettoQSvgRenderer::render, i get an error:no matching function for call to 'QSvgRenderer::render(QWidget*&)' -
I have a simple animated svg (xml ?) file that i would like to display on screen.
I created a
QSvgRendererand checked withQSvgRenderer::isValid, but now how can i pass that to say an existingQWidgetplaced with designer ?The doc says:
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 QWidgetBut i can't pass a
QWidgettoQSvgRenderer::render, i get an error:no matching function for call to 'QSvgRenderer::render(QWidget*&)'