当前位置:网站首页>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
边栏推荐
- 微生物健康网,如何恢复微生物群落
- 【测试面试题】页面很卡的原因分析及解决方案
- Debezium series: source code reading snapshot reader
- Redis cluster installation
- [problem] pytorch installation
- Form组件常用校验规则-2(持续更新中~)
- 关于海康ipc的几个参数
- Matplotlib quick start
- Gazebo import the mapping model created by blender
- This time, let's clear up: synchronous, asynchronous, blocking, non blocking
猜你喜欢
随机推荐
XMIND mind mapping software sharing
Unity与WebGL的相爱相杀
C # Development -- pit encountered in JS intermodulation
Matplotlib quick start
Signal feature extraction +lstm to realize gear reducer fault diagnosis -matlab code
Common verification rules of form components -2 (continuously updating ~)
Unity technical notes (II) basic functions of scriptableobject
Redis official ORM framework is more elegant than redistemplate
Qt Graphicsview图形视图使用总结附流程图开发案例雏形
Debezium系列之:引入对 LATERAL 运算符的支持
双非大厂测试员亲述:对测试员来说,学历重要吗?
PCL .vtk文件与.pcd的相互转换
How pyGame rotates pictures
How to close eslint related rules
Unity FAQ (I) lack of references
Revit secondary development - shielding warning prompt window
苹果在iOS 16中通过'虚拟卡'安全功能进一步进军金融领域
Two minutes, talk about some wrong understandings of MySQL index
LeetCode206. Reverse linked list [double pointer and recursion]
Details of the open source framework of microservice architecture








