Current location - Education and Training Encyclopedia - Graduation thesis - Learn Qt-0 1 from scratch. Why learn Qt?
Learn Qt-0 1 from scratch. Why learn Qt?
I study physics, because scientific research needs to write some programs myself. In my previous study and work, I mainly used C++ Builder when writing GUI programs. When doing the undergraduate graduation project at the earliest, you need to write a GUI program for data processing. At that time, I was not exposed to GUI programming, and the earliest consideration was to learn MFC. I bought a large MFC book, ate a few pages, and found that I couldn't learn MFC, a cumbersome class library [covering my face]. Later, I contacted C++ Builder 6.0. This rapid development (RAD) tool can complete the interface design by dragging and dropping controls, which is especially suitable for amateur GUI programmers like me [giggle]. Since then, many GUI programs have been developed based on C++ Builder.

Qt is also a GUI development library, but I have never learned Qt because I am familiar with C++ Builder and meet the requirements. Since the beginning of this year, I have had some interest in artificial intelligence algorithms, and found the most popular combination of Python+Qt and Qt to deal with such problems, so I rekindled my interest in learning Qt. To sum up, developing GUI programs with Qt has the following advantages:

1. Easy to learn: Qt can develop a simple GUI program through simple drag and drop and a few lines of code. This is actually similar to C++ Builder.

2. Rich data: Compared with C++ Builder, Qt updates faster and has a larger user base.

3. Beautiful interface: Qt is easy to make beautiful interfaces and cool animations, while MFC, WTL and wxWidgets may be more troublesome.

4. Independent installation: Qt programs will eventually be compiled into local code without the support of other libraries. This is compared with other GUI languages, for example, Java needs to install virtual machines, and C# needs to install them. NET framework.

5. Cross-platform: Qt supports many operating systems. If your program needs to run on multiple platforms and you want to reduce the development cost, Qt is almost the best choice. In this respect, C++ Builder is much worse.

6. Multilingualism: Although Qt is a class library developed based on pure C++, it is bound by scripting languages such as Python and Ruby, which means that programs based on Qt can be developed in scripting languages. For example, the combination of Python+Qt mentioned above is PyQt.

Therefore, starting from today, as a small white science and engineering project, I [covering my face] intend to learn Qt from scratch and organize my learning experience into a series of articles, which is an encouragement and spur to myself. Later, on the basis of Qt, I further studied Python and PyQt.