当前位置:网站首页>QT graphicsview graphical view usage summary with flow chart development case prototype
QT graphicsview graphical view usage summary with flow chart development case prototype
2022-07-07 22:56:00 【Trendy technology research society】
QGraphicsview The predecessor was QCanvas, As one can imagine , It is the canvas , Inherited from QWidget, and QTableView,QListView etc. view Are visual controls , That is, yes show Control for .
For these View, We know , You usually have to work with one Model binding ,Model Responsible for content addition management ,View Responsible for exhibition . therefore ,QGraphicsView There is also one Model, Namely QGraphicsScene, One scene You can bind multiple view,scene You can set the size , It can also be set without .
QGraphicsScene(qreal x, qreal y, qreal width, qreal height, QObject *parent = nullptr)
QGraphicsScene(const QRectF &sceneRect, QObject *parent = nullptr)
QGraphicsScene(QObject *parent = nullptr)Typical usage codes are as follows :
QGraphicsScene scene;
scene.addText("Hello, world!");
QGraphicsView view(&scene);
view.show();
Graphics View The function of the framework is , Provides a surface , On this side , Can manage a large number of 2D graphics , Like lines , Rectangle , triangle , circular , For example, the graphics in the flow chart , arrow , Smiley face symbol , Comment box , Various symbols , Now let's make a flow chart software
边栏推荐
- Cannot find module 'xxx' or its corresponding type declaration
- “拧巴”的早教行业:万亿市场,难出巨头
- How to close eslint related rules
- Cataloger integrates lidar and IMU for 2D mapping
- Years of summary, some core suggestions for learning programming
- ASP. Net core introduction V
- Xcode modifies the default background image of launchscreen and still displays the original image
- Unity与WebGL的相爱相杀
- There is another problem just online... Warm
- 行测-图形推理-8-图群类
猜你喜欢

行测-图形推理-7-相异图形类

IP网络主动测评系统——X-Vision

Force deduction - question 561 - array splitting I - step by step parsing

行测-图形推理-2-黑白格类

不夸张地说,这是我见过最通俗易懂的,pytest入门基础教程

There is another problem just online... Warm

Yarn开启ACL用户认证之后无法查看Yarn历史任务日志解决办法

Unity与WebGL的相爱相杀

一次搞明白 Session、Cookie、Token,面试问题全稿定

Line measurement - graphic reasoning -9- line problem class
随机推荐
Debezium系列之:引入对 LATERAL 运算符的支持
Form组件常用校验规则-2(持续更新中~)
Understand the autograd package in pytorch
0-5vac to 4-20mA AC current isolated transmitter / conversion module
php 获取图片信息的方法
Record problems fgui tween animation will be inexplicably killed
Debezium series: support the use of variables in the Kill Command
PHP method of obtaining image information
Quick sort (diagram +c code)
Leetcode1984. Minimum difference in student scores
Debezium系列之:mysql墓碑事件
Revit secondary development - shielding warning prompt window
行测-图形推理-6-相似图形类
Line test - graphic reasoning - 6 - similar graphic classes
PCL .vtk文件与.pcd的相互转换
What is ADC sampling rate (Hz) and how to calculate it
Visual studio 2019 installation
Two minutes, talk about some wrong understandings of MySQL index
微生物健康網,如何恢複微生物群落
Sword finger offer 27 Image of binary tree