当前位置:网站首页>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
边栏推荐
- Micro service remote debug, nocalhost + rainbow micro service development second bullet
- Unity and webgl love each other
- Aspose. Words merge cells
- UWA Q & a collection
- Record problems fgui tween animation will be inexplicably killed
- Robot autonomous exploration DSVP: code parsing
- Details of the open source framework of microservice architecture
- 7-18 simple simulation of banking business queue
- Revit secondary development - get the thickness / length / height of the beam
- Basic knowledge of binary tree
猜你喜欢
Basic knowledge of binary tree
Knowledge drop - PCB manufacturing process flow
The PHP source code of the new website + remove authorization / support burning goose instead of pumping
CTF练习
Yarn cannot view the historical task log of yarn after enabling ACL user authentication. Solution
Ni9185 and ni9234 hardware settings in Ni Max
CTF exercise
Sword finger offer 28 Symmetric binary tree
一次搞明白 Session、Cookie、Token,面试问题全稿定
【测试面试题】页面很卡的原因分析及解决方案
随机推荐
线上面试,该如何更好的表现自己?这样做,提高50%通过率~
How pyGame rotates pictures
[environment] pycharm sets the tool to convert QRC into py file
Leetcode206. Reverse linked list
The author of LinkedList said he didn't use LinkedList himself
Line test - graphic reasoning -5- one stroke class
Debezium series: binlogreader for source code reading
Years of summary, some core suggestions for learning programming
De la famille debezium: SET ROLE statements supportant mysql8
Class implementation of linear stack and linear queue (another binary tree pointer version)
Cause analysis and solution of too laggy page of [test interview questions]
Debezium系列之: 支持在 KILL 命令中使用变量
Redis集群安装
「开源摘星计划」Loki实现Harbor日志的高效管理
Details of the open source framework of microservice architecture
LeetCode203. Remove linked list elements
Microbial Health Network, How to restore Microbial Communities
Revit secondary development - operation family documents
Loki, the "open source star picking program", realizes the efficient management of harbor logs
Gazebo import the mapping model created by blender