当前位置:网站首页>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
边栏推荐
- Leetcode interview question 02.07 Linked list intersection [double pointer]
- Yarn cannot view the historical task log of yarn after enabling ACL user authentication. Solution
- Typeorm automatically generates entity classes
- Ni9185 and ni9234 hardware settings in Ni Max
- 微服务架构开源框架详情介绍
- Unity technical notes (II) basic functions of scriptableobject
- Leetcode94. Middle order traversal of binary trees
- 软件测评中心▏自动化测试有哪些基本流程和注意事项?
- 7-18 simple simulation of banking business queue
- Sword finger offer 55 - I. depth of binary tree
猜你喜欢

Matplotlib quick start

Line measurement - graphic reasoning -9- line problem class

CTF exercise

Early childhood education industry of "screwing bar": trillion market, difficult to be a giant
Redis官方ORM框架比RedisTemplate更优雅

ASP.NET Core入门五

Micro service remote debug, nocalhost + rainbow micro service development second bullet
Apple further entered the financial sector through the 'virtual card' security function in IOS 16
![Leetcode19. Delete the penultimate node of the linked list [double pointer]](/img/a9/809b93d1ffd11ba4a9074ac8e2bdee.jpg)
Leetcode19. Delete the penultimate node of the linked list [double pointer]

The author of LinkedList said he didn't use LinkedList himself
随机推荐
De la famille debezium: SET ROLE statements supportant mysql8
Nx10.0 installation tutorial
行测-图形推理-3-对称图形类
新版代挂网站PHP源码+去除授权/支持燃鹅代抽
LeetCode707. Design linked list
Ueeditor custom display insert code
行测-图形推理-1-汉字类
Gazebo import the mapping model created by blender
C # realizes the communication between Modbus protocol and PLC
7-18 simple simulation of banking business queue
Leetcode19. Delete the penultimate node of the linked list [double pointer]
Line test - graphic reasoning -7- different graphic classes
线上面试,该如何更好的表现自己?这样做,提高50%通过率~
0-5vac to 4-20mA AC current isolated transmitter / conversion module
PHP method of obtaining image information
Cannot find module 'xxx' or its corresponding type declaration
Revit secondary development - get the project file path
Debezium series: source code reading snapshot reader
Debezium系列之:支持 mysql8 的 set role 语句
行测-图形推理-2-黑白格类