Re: How come SVG support isn't native?
Posted: Sun Mar 28, 2010 4:00 pm
Since it is based on Qt, I wouldn't be surprised if the multi-platform edition of XnView will eventually be able to read “a subset of SVG”.
Qt Reference Documentation ([url=http://doc.qt.nokia.com/4.6/xml-processing.html]XML Processing[/url]) wrote:In addition to core XML support, classes for higher level querying and manipulation of XML data are provided by the QtXmlPatterns module. In the QtSvg module, the QSvgRenderer and QSvgGenerator classes can read and write a subset of SVG, an XML-based file format. Qt also provides helper functions that may be useful to those working with XML and XHTML: see Qt::escape() and Qt::convertFromPlainText().
Qt Reference Documentation ([url=http://doc.qt.nokia.com/4.6/painting-svgviewer.html]SVG Viewer Example[/url]) wrote:Scalable Vector Graphics (SVG) is an XML-based language for describing two-dimensional vector graphics. Qt provides classes for rendering and displaying SVG drawings in widgets and on other paint devices. This example allows the user to load SVG files and view them in a QGraphicsView using a QGraphicsSvgItem. Based on the selected renderer the QGraphicsView uses either a QWidget or QGLWidget as its viewport. A third render mode is also provided, where the QGraphicsView draws indirectly though a QImage. This allows testing of drawing accuracy and performance for both the native, raster, and OpenGL paint engines.
See the QtSvg module documentation for more information about SVG and Qt's SVG classes.
- Zack Rusin
- SVG Open