Qt layout Summary

Source: Internet
Author: User

Today, I made another day's layout. In a previous project, the boss said the layout was too messy and the architecture had to be reset. Alas, I can only make a big change to the entire structure. Since I just learned QT, I really don't know about those things. Slowly exploring. In the afternoon, a colleague said that the person you saw was a whole person. What I saw was separation of head and hands, body and foot ....
After careful consideration, I finally felt something. Previously I thought of the form as a whole, and it was difficult to separate the upper half and lower half of the form and always design them together. As a result, it takes a lot of time in the development process to process the relationship between the upper and lower parts, and control the relationship between the two parts. In short, it takes a lot of time and effort. Today, we think of a window as a class, the last part as a class, and the next part as a class. Let the window class specifically link the upper and lower parts. In this way, the previous classes can do their own things, And the next part can also do their own things. You don't have to consider anything else. If you need parameter data or something like that, and the window class. After this design, we found that our ideas were quite clear. The above is the summary of today. Continue to work hard in the future.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.