Exporting shapes to SVG files

SVG is an XML-based language for describing two-dimensional vector graphics. Qt provides classes for saving vector shapes as SVG file. This feature can be used to create a simple vector graphics editor similar to Adobe Illustrator and Inkscape. In the next example, we will continue using the same project file from the previous example.