当前位置:网站首页>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
边栏推荐
- Take full control! Create a "leading cockpit" for smart city construction
- Unity development --- the mouse controls the camera to move, rotate and zoom
- 筑起云端 “免疫”屏障,让你的数据有备无患
- Line test - graphic reasoning - 3 - symmetric graphic class
- Knowledge drop - PCB manufacturing process flow
- How to judge whether the input content is "number"
- Debezium系列之: 支持在 KILL 命令中使用变量
- Redis official ORM framework is more elegant than redistemplate
- Debezium series: support the use of variables in the Kill Command
- How to close eslint related rules
猜你喜欢
微生物健康網,如何恢複微生物群落
[environment] pycharm sets the tool to convert QRC into py file
苹果在iOS 16中通过'虚拟卡'安全功能进一步进军金融领域
How to choose the appropriate automated testing tools?
Line test - graphic reasoning -7- different graphic classes
行测-图形推理-1-汉字类
Sword finger offer 55 - I. depth of binary tree
Redis官方ORM框架比RedisTemplate更优雅
How pyGame rotates pictures
Apple further entered the financial sector through the 'virtual card' security function in IOS 16
随机推荐
Loki, the "open source star picking program", realizes the efficient management of harbor logs
What is ADC sampling rate (Hz) and how to calculate it
What is fake sharing after filling the previous hole?
UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0xf9 in position 56: illegal multibyte sequence
Apple further entered the financial sector through the 'virtual card' security function in IOS 16
C # realizes the communication between Modbus protocol and PLC
Redis集群安装
Unity technical notes (I) inspector extension
This time, let's clear up: synchronous, asynchronous, blocking, non blocking
Yarn开启ACL用户认证之后无法查看Yarn历史任务日志解决办法
Unity and webgl love each other
Revit secondary development - intercept project error / warning pop-up
Years of summary, some core suggestions for learning programming
Time convolution Network + soft threshold + attention mechanism to realize residual life prediction of mechanical equipment
Revit secondary development - Hide occlusion elements
De la famille debezium: SET ROLE statements supportant mysql8
微服務遠程Debug,Nocalhost + Rainbond微服務開發第二彈
The PHP source code of the new website + remove authorization / support burning goose instead of pumping
ASP.NET Core入门五
XMIND mind mapping software sharing