当前位置:网站首页>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
边栏推荐
- Line test graph reasoning graph group class
- Xcode modifies the default background image of launchscreen and still displays the original image
- [environment] pycharm sets the tool to convert QRC into py file
- Debezium系列之:mysql墓碑事件
- Debezium series: set role statement supporting mysql8
- UWA Q & a collection
- How pyGame rotates pictures
- Line test - graphic reasoning - 3 - symmetric graphic class
- 行测-图形推理-1-汉字类
- 行测-图形推理-3-对称图形类
猜你喜欢

UWA Q & a collection

The PHP source code of the new website + remove authorization / support burning goose instead of pumping

Yarn cannot view the historical task log of yarn after enabling ACL user authentication. Solution

Leetcode1984. Minimum difference in student scores

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

行测-图形推理-3-对称图形类

Digital transformation: five steps to promote enterprise progress

Select sort (illustration +c code)

Microservice Remote debug, nocalhost + rainbond microservice Development second Bomb

“拧巴”的早教行业:万亿市场,难出巨头
随机推荐
Unity technical notes (I) inspector extension
Visual studio 2019 installation
“拧巴”的早教行业:万亿市场,难出巨头
「开源摘星计划」Loki实现Harbor日志的高效管理
Visual design form QT designer design gui single form program
Debezium series: set role statement supporting mysql8
Explain in detail the communication mode between arm A7 and risc-v e907 on Quanzhi v853
LeetCode206. Reverse linked list [double pointer and recursion]
全面掌控!打造智慧城市建设的“领导驾驶舱”
C # Development -- pit encountered in JS intermodulation
Xcode modifies the default background image of launchscreen and still displays the original image
Revit secondary development - shielding warning prompt window
Leetcode19. Delete the penultimate node of the linked list [double pointer]
Install mxnet GPU version
Knowledge drop - PCB manufacturing process flow
Redis official ORM framework is more elegant than redistemplate
XMIND mind mapping software sharing
Ligne - raisonnement graphique - 4 - classe de lettres
LeetCode707. Design linked list
Debezium series: MySQL tombstone event