In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Recently, due to the need to do interface development in learning QT, I will record my learning experience in the last month again, and welcome you Daniel to give me some learning suggestions.
1: my learning method:
The first stage: mainly refer to C++ GUI Qt4 programming. This book mainly studies some basic concepts in QT, such as: the mechanism of signals and slots, the event handling of QT, the drawing of QT, API learning, etc.
In the process of learning, it is mainly to combine theory with coding, compile the code in the book once, and then make changes and play some new tricks by yourself. in the early stage, it is mainly to understand the meaning of the code in the book, and then make changes to strengthen understanding. This period of time takes 10 days.
The second stage: using the learning QT, do a project yourself: write a video player
To tell you the truth, I think the biggest difficulty in learning programming is to use it flexibly. It is not difficult for anyone to learn the scattered knowledge points in the early stage, but it takes time to combine these knowledge points to write an excellent software.
A: the first step to achieve the interface is to split the interface into several large parts, generally with reference to up and down, left and right, so that several large modules are basically designed, and then code each part, and then further split each part, this is an abstract ability, this step is very important.
If this step is done, it means that your basic architecture has been designed and the relationship between classes has been designed.
B: at the time of design, the above design is a basic interface class, all of which are window classes inherited from QWidget. If you want your code to be well designed, you need to do a hierarchical design. For example, when I modularize a control, I need to implement some drawing operations, drag-and-drop operations, or need to obtain data for loading operations, so it is best to implement another class.
This class as a Control or Manger class, this class is used to do special management drawing to obtain data processing data, this design is the idea of layering, the MVC pattern in the front-end design is this kind of design idea.
C: componentization, you can do this. For example, a large control you implement, for example, I need to have a list of videos currently selected by the user as a player. In fact, this control can be used in many places. You can modularize it into a dll or use COM technology, so that the module you design can be used by others.
D: there is another point to do front-end design is the style problem, this is a more patient work, first your interface is beautiful, deliberation, learning, reference, practice is a need, so work hard.
The first blog post, give some encouragement. Later, my blog will post the projects I usually do. Let's cheer.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.