The QtSvg 模块提供用于显示和创建 SVG 文件的类。 更多...
该文档编制在 Qt 4.1 引入。
| QGraphicsSvgItem | 用于渲染 SVG 文件内容的 QGraphicsItem |
| QSvgGenerator | 用于创建 SVG 绘制的描绘设备 |
| QSvgRenderer | 用于将 SVG 文件内容绘制到描绘设备上 |
| QSvgWidget | 用于显示 SVG (可伸缩向量图形) 文件内容的 Widget |
要包括模块类定义,使用以下指令:
#include <QtSvg>
要链接到模块,添加此行到
qmake
.pro
文件:
QT += svg
Some code for arc handling in this module is derived from code with the following license:
Copyright 2002 USC/Information Sciences Institute
Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation, and that the name of Information Sciences Institute not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. Information Sciences Institute makes no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty.
INFORMATION SCIENCES INSTITUTE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL INFORMATION SCIENCES INSTITUTE BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.