当前位置:网站首页>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
边栏推荐
- Robot autonomous exploration DSVP: code parsing
- 6-3 find the table length of the linked table
- Debezium series: set role statement supporting mysql8
- Pyqt GUI interface and logic separation
- LeetCode144. Preorder traversal of binary tree
- PHP records the pitfalls encountered in the complete docking of Tencent cloud live broadcast and im live group chat
- UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0xf9 in position 56: illegal multibyte sequence
- Select sort (illustration +c code)
- Failed to initialize rosdep after installing ROS
- Cause analysis and solution of too laggy page of [test interview questions]
猜你喜欢
CTF练习
不夸张地说,这是我见过最通俗易懂的,pytest入门基础教程
详解全志V853上的ARM A7和RISC-V E907之间的通信方式
行测-图形推理-3-对称图形类
0-5vac to 4-20mA AC current isolated transmitter / conversion module
Transparent i/o model from beginning to end
Microbial Health Network, How to restore Microbial Communities
[environment] pycharm sets the tool to convert QRC into py file
Matplotlib quick start
行测-图形推理-1-汉字类
随机推荐
Debezium series: binlogreader for source code reading
Failed to initialize rosdep after installing ROS
行测-图形推理-2-黑白格类
Unity FAQ (I) lack of references
php 记录完整对接腾讯云直播以及im直播群聊 所遇到的坑
Sword finger offer 55 - I. depth of binary tree
Debezium series: source code reading snapshot reader
What is fake sharing after filling the previous hole?
不夸张地说,这是我见过最通俗易懂的,pytest入门基础教程
行测-图形推理-6-相似图形类
Apple further entered the financial sector through the 'virtual card' security function in IOS 16
7-18 simple simulation of banking business queue
Revit secondary development - Hide occlusion elements
UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0xf9 in position 56: illegal multibyte sequence
Typeorm automatically generates entity classes
CTF练习
The PHP source code of the new website + remove authorization / support burning goose instead of pumping
Leetcode206. Reverse linked list
PHP method of obtaining image information
数字藏品加速出圈,MarsNFT助力多元化文旅经济!