QT study on the third day

--- --- restore content begins

A, GUI development principles:

Same GUI development on different operating systems principle, different GUI SDK on different operating systems, modern operating systems provide support for GUI application development SDK support

Development GUI program comprising: program code for creating and using window elements, respond differently to the message in accordance with a program message handler

GUI program creates a message queue (stored message) will run - the operating system kernel will be translated to the corresponding user program message

Program running time processing messages in the queue, no news program processing standstill

Pseudo-code (not compiled to run)

GUI application development: in China to create the code window and window elements with the program, respond differently in the message processing function according to the program message

The message and function link

GUI Program Development modes: visual message mapping interface development +

 

 

GUI user interface: the main window (Object), menu bar, text boxes, buttons, etc.

Object-oriented software development process is more suitable for GUI programming

C ++ is because computer science is calculated from the user-oriented process of birth

All interface elements can be regarded as the actual object

The operating system only functions, we only have to create their own class

The interface elements defined with the corresponding class, interface elements can hide the details of abstraction and encapsulation by the process of creating a program object is a combination of process interface element

--- end --- restore content

Guess you like

Origin www.cnblogs.com/RanmmBlog/p/11432102.html