Klugier Messages: 1076 Registered: September 2012 Location: Poland, Kraków
Senior Contributor
Hello Sayem,
Here is example of using SVG. You could play with it compiling examples/SVGView. In order to load SVG you need to use RenderSVGImage function provided by Painter package. It will create image for you for a given size. This image can be used to set icon for example in the toolbar. In order to do not call RenderSVGImage too many times, I highly recommend to cache your images in memory.
Here is code responsible from loading SVG, the parameters are size and path to SVG file: