当前位置:网站首页>QT learning 01 GUI program principle analysis
QT learning 01 GUI program principle analysis
2022-06-29 23:59:00 【A little black sauce】
Qt Study 01 GUI Program principle analysis
Command line application
Features of command line applications (Command Line Interface)
- It's a kind of Based on sequential execution structure Executable program of
- Program execution There is no need to interact with the user
- After the program is executed The final Running results
Example :gcc Compiled source code
gcc a.c b.c c.c
There is no user interaction during compilation , After compilation, it either becomes an executable program or gives an error message .
The running mode of the command line application
characteristic : The operation of the program has Fixed start and Fixed end
The command line application is suitable for
- Single task situations
- No interaction or simple interaction
- Server applications
Command line application is the main program type in the early computer system
Graphical interface applications
Features of GUI applications (Graphic User Interface)
- It's a kind of Based on the message driven model Executable program of
- Execution of procedures Depending on the user interaction process
- Program execution Real time response to user actions
- Generally, the program will not exit after execution
Running mode of GUI application
Message processing model for GUI applications
principle : The user uses the mouse or keyboard to operate the computer , The operating system generates the corresponding system message , Send to a focused application , The application receives a system message , Call the message processing function to process the user operation accordingly .
The process : User generated user actions => The operating system receives and generates system messages => The application receives and calls the message handler
Most of the time, the programming of graphical interface application is to write message processing functions to process system messages
The GUI application is suitable for
- multitasking The occasion of
- Strong user interaction The occasion of
- Non professional computer users
Graphical interface application program is the main program type in modern computer system
Graphical interface program VS Command line program
- Contemporary large-scale software product architecture model
Summary
Command line application | Graphical interface applications |
---|---|
Based on sequential execution structure | Based on the message driven model |
Weak interactive execution | Strong interactive execution |
Triggered by the user | Run triggered by the user |
Take the initiative to end | End triggered by the user |
边栏推荐
- HTAP x cloud native: tidb accelerates the release of data value and realizes data agility
- 6.29日刷题题解
- Basic tutorial for installing monggodb in win10
- Cacti关于spine轮询的设置
- 剑指 Offer 14- I. 剪绳子
- Create an API rapid development platform, awesome!
- Virtual machine online migration based on openstack
- solo 博客皮肤导入 skins 文件夹后出现 500 错误
- 【微信小程序】认识小程序项目的基本组成结构
- Implementation of aut, a self-developed transport layer protocol for sound network -- dev for dev column
猜你喜欢
Sword finger offer 13 Range of motion of robot
matlab习题 —— 程序控制流程练习
koa2学习和使用
After crossing, she said that the multiverse really exists
500 error occurred after importing skins folder into solo blog skin
New titanium cloud service won the "2022 love analysis · panoramic report of it operation and maintenance manufacturers" cloud management platform CMP representative manufacturer
Et la tarte aux framboises 4? Quels sont les jeux possibles?
數莓派 4怎麼樣?可能的玩法有哪些?
Head pressing Amway good-looking and practical dispensing machine SolidWorks model material here
小程序插件接入、开发与注意事项
随机推荐
Yunhe enmo, gaiguoqiang, identify it and grasp it before the domestic database boils
Gradle连载7-配置签名
6.29 problem solving
Start harvesting! Nailing: adjust the maximum number of free users of "nailing team". If the number exceeds 10, it will not work normally
剑指 Offer 14- II. 剪绳子 II
漫画安全HIDS、EDR、NDR、XDR
Unity about failure (delay) of destroy and ondestroy
云服务器的安全设置常识
二叉搜索树 230. 二叉搜索树中第K小的元素 1038. 从二叉搜索树到更大和树
数莓派 4怎么样?可能的玩法有哪些?
Binary search tree 230 The element with the smallest K in the binary search tree 1038 From binary search tree to larger sum tree
On binary tree
Use of jetpack's room in combination with flow
6.28 problem solving
[leetcode] a number that appears only once [136]
网上开户选哪个证券公司?还有,在线开户安全么?
Applet plug-in access, development and precautions
剑指 Offer 14- I. 剪绳子
modelsim的TCL脚本的define incdir命令解析
Solr basic operation 5