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.