当前位置:网站首页>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 |
边栏推荐
- 请指教同花顺软件究竟是什么?究竟网上开户是否安全么?
- Sword finger offer 13 Range of motion of robot
- The role of VMware virtual machine
- Xutils3 transfer set
- Unity splashimage scaling problem
- 剑指 Offer 13. 机器人的运动范围
- Head on Amway! Good looking and practical motor SolidWorks model material see here
- Leetcode(680)——验证回文字符串 Ⅱ
- RRDTOOL draws MRTG log data
- Halcon实用:焊点检出设计思路
猜你喜欢

6.28日刷题题解

Jetpack之Room的使用,结合Flow

Siemens low code version 9.14: meet different needs

QPainter的使用入门:绘制象棋界面

ThinkPad VMware installation virtual machine: this host supports Intel VT-x, but Intel VT-x is disabled (problem resolution)

Simple understanding of B tree and b+ tree

Unity splashimage scaling problem

How to view the CPU cores and threads in win11? Win11 view the tutorial of how many cores and threads the CPU is

【一起上水硕系列】Day 8

Basic tutorial for installing monggodb in win10
随机推荐
FPGA Development (1) -- serial port communication
matlab习题 —— 程序控制流程练习
Is China Merchants Securities reliable? Is it safe to open a stock account?
The role of VMware virtual machine
一步步教你在Edge浏览器上安装网风笔记
Implementation of aut, a self-developed transport layer protocol for sound network -- dev for dev column
Shell positional parameter variables and predefined variables
modelsim的TCL脚本的define incdir命令解析
I wonder if I can open an account today? In addition, is it safe to open an account online now?
二叉树的序列化 力扣 297. 二叉树的序列化与反序列化 652. 寻找重复的子树
Head on Amway! Good looking and practical motor SolidWorks model material see here
剑指 Offer 15. 二进制中1的个数
Test d'installation du cluster metaq
网上开户选哪个证券公司?还有,在线开户安全么?
RRDTOOL draws MRTG log data
Which securities company is good for opening a mobile account? In addition, is it safe to open a mobile account?
Inspiration collection · evaluation of creative writing software: flomo, obsidian memo, napkin, flowus
打造一个 API 快速开发平台,牛逼!
剑指 Offer 13. 机器人的运动范围
Binary search tree 230 The element with the smallest K in the binary search tree 1038 From binary search tree to larger sum tree