当前位置:网站首页>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
边栏推荐
- Record layoutrebuild Forcerebuildlayoutimmediate does not take effect
- php 获取图片信息的方法
- There is another problem just online... Warm
- How to close eslint related rules
- Cataloger integrates lidar and IMU for 2D mapping
- Leetcode1984. Minimum difference in student scores
- What is ADC sampling rate (Hz) and how to calculate it
- “拧巴”的早教行业:万亿市场,难出巨头
- UWA Q & a collection
- Build an "immune" barrier in the cloud to prepare your data
猜你喜欢

LeetCode203. Remove linked list elements
苹果在iOS 16中通过'虚拟卡'安全功能进一步进军金融领域

Digital transformation: five steps to promote enterprise progress
Redis official ORM framework is more elegant than redistemplate

CTF exercise

Select sort (illustration +c code)

GBU1510-ASEMI电源专用15A整流桥GBU1510

0-5vac to 4-20mA AC current isolated transmitter / conversion module

Line test graph reasoning graph group class

How to choose the appropriate automated testing tools?
随机推荐
详解全志V853上的ARM A7和RISC-V E907之间的通信方式
Visual studio 2019 installation
行测-图形推理-7-相异图形类
Debezium系列之:mysql墓碑事件
行测-图形推理-4-字母类
UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0xf9 in position 56: illegal multibyte sequence
Robot autonomous exploration series papers environment code
Cataloger integrates lidar and IMU for 2D mapping
Why is network i/o blocked?
CTF exercise
行测-图形推理-8-图群类
C # Development -- pit encountered in JS intermodulation
Revit secondary development - Hide occlusion elements
Pyqt GUI interface and logic separation
Debezium系列之:支持 mysql8 的 set role 語句
面试百问:如何测试App性能?
Unity FAQ (I) lack of references
Ueeditor custom display insert code
行测-图形推理-1-汉字类
Leetcode1984. Minimum difference in student scores