it would force you to render the animation in Cairo and convert it to a sequence of raster images, so, either the animation is prerendered before with a predefined size (thus limiting the vectorialization benefits), or it will add a further overhead during real time rendering.There is the cairosvg module, but it has two major issues: Unfortunately, you don't have a lot of options. This is not possible with the Qt SVG module: according to the SVG documentation, "Qt supports the static features of SVG 1.2 Tiny", which does not provide any filter. I want to display full svg when the request is being processed. Svg_bytes = bytearray(svg_str, encoding='utf-8') I have a animated SVG file which is supposed to be displayed like so:īut when I tried to display the loader, it only displayed the circle part, I mean like this:įrom PyQt5.QtSvg import QSvgWidget, QSvgRenderer When the request is being processed, I want to display a loading animation. I have a PyQt5 application that send request to an API and display image that it retrived from API.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |