当前位置:网站首页>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
边栏推荐
- Unity technical notes (I) inspector extension
- Debezium series: support the use of variables in the Kill Command
- 微服务架构开源框架详情介绍
- Aspose. Words merge cells
- Line test - graphic reasoning - 6 - similar graphic classes
- 软件测评中心▏自动化测试有哪些基本流程和注意事项?
- Why is network i/o blocked?
- Quick sort (diagram +c code)
- ASP.NET Core入门五
- Transparent i/o model from beginning to end
猜你喜欢
苹果在iOS 16中通过'虚拟卡'安全功能进一步进军金融领域
PCL .vtk文件与.pcd的相互转换
Microbial health network, how to restore microbial communities
ASEMI整流桥KBPC1510的型号数字代表什么
[problem] pytorch installation
Line test - graphic reasoning - 3 - symmetric graphic class
Explain in detail the communication mode between arm A7 and risc-v e907 on Quanzhi v853
Force deduction - question 561 - array splitting I - step by step parsing
C # realizes the communication between Modbus protocol and PLC
Digital transformation: five steps to promote enterprise progress
随机推荐
LeetCode142. Circular linked list II [two pointers, two methods for judging links in the linked list and finding ring points]
Unity local coordinates and world coordinates
Leetcode94. Middle order traversal of binary trees
Nx10.0 installation tutorial
De la famille debezium: SET ROLE statements supportant mysql8
[environment] pycharm sets the tool to convert QRC into py file
The PHP source code of the new website + remove authorization / support burning goose instead of pumping
Robot autonomous exploration DSVP: code parsing
Force deduction - question 561 - array splitting I - step by step parsing
Debezium系列之:mysql墓碑事件
行测-图形推理-1-汉字类
Cannot find module 'xxx' or its corresponding type declaration
行测-图形推理-5-一笔画类
ADC采样率(HZ)是什么怎么计算
Leetcode1984. Minimum difference in student scores
ASP.NET Core入门五
Record layoutrebuild Forcerebuildlayoutimmediate does not take effect
PHP method of obtaining image information
Digital transformation: five steps to promote enterprise progress
Matplotlib quick start