-
大小: 31KB文件类型: .rar金币: 2下载: 1 次发布日期: 2021-05-10
- 语言: 其他
- 标签: 流程图 QGraphicsVie
资源简介
qt 自带的绘制流程图示例,可以在QT Creator搜索“diagramscene”
D:\Qt\Qt5.9.3\Examples\Qt-5.9.3\widgets\graphicsview\diagramscene
代码片段和文件信息
/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the examples of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or alternatively in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** BSD License Usage
** Alternatively you may use this file under the terms of the BSD license
** as follows:
**
** “Redistribution and use in source and binary forms with or without
** modification are permitted provided that the following conditions are
** met:
** * Redistributions of source code must retain the above copyright
** notice this list of conditions and the following disclaimer.
** * Redistributions in binary form must reproduce the above copyright
** notice this list of conditions and the following disclaimer in
** the documentation and/or other materials provided with the
** distribution.
** * Neither the name of The Qt Company Ltd nor the names of its
** contributors may be used to endorse or promote products derived
** from this software without specific prior written permission.
**
**
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
** “AS IS“ AND ANY EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT
** LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT INDIRECT INCIDENTAL
** SPECIAL EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING BUT NOT
** LIMITED TO PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE
** DATA OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
** THEORY OF LIABILITY WHETHER IN CONTRACT STRICT LIABILITY OR TORT
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
** OF THIS SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.“
**
** $QT_END_LICENSE$
**
****************************************************************************/
#include “arrow.h“
#include
#include
#include
const qreal Pi = 3.14;
//! [0]
Arrow::Arrow(DiagramItem *startItem DiagramItem *endItem QGraphicsItem *parent)
: QGraphicsLineItem(parent)
{
myStartItem = startItem;
myEndItem = endItem;
setFlag(QGraphicsItem::ItemIsSelectable true);
myColor = Qt::black;
setPen(QPen(myColor 2 Qt::SolidLine Qt::RoundCap Qt::RoundJoin));
}
//! [0]
//! [1]
QRectF Arrow::boundingR
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 5503 2017-11-16 13:15 diagramscene\arrow.cpp
文件 3593 2017-11-16 13:15 diagramscene\arrow.h
文件 5468 2017-11-16 13:15 diagramscene\diagramitem.cpp
文件 3797 2017-11-16 13:15 diagramscene\diagramitem.h
文件 8203 2017-11-16 13:15 diagramscene\diagramscene.cpp
文件 4335 2017-11-16 13:15 diagramscene\diagramscene.h
文件 391 2017-11-16 13:15 diagramscene\diagramscene.pro
文件 24072 2019-11-03 07:10 diagramscene\diagramscene.pro.user
文件 660 2017-11-16 13:15 diagramscene\diagramscene.qrc
文件 3504 2017-11-16 13:15 diagramscene\diagramtextitem.cpp
文件 3346 2017-11-16 13:15 diagramscene\diagramtextitem.h
文件 112 2017-11-16 13:15 diagramscene\images\background1.png
文件 114 2017-11-16 13:15 diagramscene\images\background2.png
文件 116 2017-11-16 13:15 diagramscene\images\background3.png
文件 96 2017-11-16 13:15 diagramscene\images\background4.png
文件 353 2017-11-16 13:15 diagramscene\images\bold.png
文件 293 2017-11-16 13:15 diagramscene\images\bringtofront.png
文件 831 2017-11-16 13:15 diagramscene\images\delete.png
文件 282 2017-11-16 13:15 diagramscene\images\floodfill.png
文件 299 2017-11-16 13:15 diagramscene\images\italic.png
文件 145 2017-11-16 13:15 diagramscene\images\linecolor.png
文件 141 2017-11-16 13:15 diagramscene\images\linepointer.png
文件 230 2017-11-16 13:15 diagramscene\images\pointer.png
文件 318 2017-11-16 13:15 diagramscene\images\sendtoback.png
文件 893 2017-11-16 13:15 diagramscene\images\textpointer.png
文件 307 2017-11-16 13:15 diagramscene\images\underline.png
文件 2799 2017-11-16 13:15 diagramscene\main.cpp
文件 22460 2019-10-21 21:48 diagramscene\mainwindow.cpp
文件 5325 2017-11-16 13:15 diagramscene\mainwindow.h
目录 0 2019-11-03 07:10 diagramscene\images
............此处省略4个文件信息
- 上一篇:portalforarcgis104.ecp
- 下一篇:软件著作权源代码文档生成工具
相关资源
- 整车物流运输流程图
- netron2009
- 网上书店设计说明书_(含结构图、流
- bool商城代码+笔记+流程图
- faster rcnn流程图
- QGraphicsView框架实现画板
- Stateflow流程图
- PX4飞控系统的流程图
- 图书管理系统(流程图+功能图+ER+全套
- netron源代码v2.1
- 流程图生成器
- 基于SIP协议的抓包工具
- 进销存管理系统详细设计(包括流程
- 人力资源部VSD流程图
- 电信计费系统(代码+文档+流程图等毕
- 源代码转化成流程图软件
- 工艺流程图
- visio流程图模板库
- visus612工具 自动生成编程语言流程图
- 程序流程图生成器很容易生成
- 简单的流程图绘制软件,比微软的v
- AutoFlowChart自动生成流程图2.4.7真正的
- 程序流程网络拓扑图绘制工具
- 火电厂各系统流程图(主系统)
- HIS各子系统流程图
- Pixhawk控制流程图-蜗牛拉火车
- 业务流程分析与业务流程图的画法
- C流程图生成器_V3.2
- 学生成绩管理系统毕业设计(论文+流
- 汇报材料PPT最精美的流程图
评论
共有 条评论