Qt naming Rule Summary

Source: Internet
Author: User

Like QT naming rules

Specially searched and pasted

1. the QT component is named in uppercase.
2. The variable is used to join lower-case words.
3. By default, all file names are in lower case.
4. All macros are in uppercase.
5. Membership Function hump principle.
6. User variables:

PS:

The camel naming method (also known as the camelcase method) is a combination of uppercase and lowercase letters to form the names of variables and functions.ProgramFor your ownCodeIt is easier to communicate with peers, so it adopts a Uniform Naming method with better readability. For example, some programmers prefer lower case letters and some programmers prefer to use underscores. Therefore, if you want to write a variable named my name, you can write myname, my_name, myname, or myname frequently. Such naming rules are not suitable for all programmers to read, but are expressed using the camper method to increase program readability. For example, the following is the same function named by the camel naming method and the underline method respectively:
Printemployeepaychecks ();
Print_employee_paychecks ();
The first function name uses the camel naming method-each logical breakpoint in the function name is marked with an uppercase letter; the second function name uses the underline method-each logical breakpoint in the function name is marked with an underscore.
The camel naming method has become increasingly popular in recent years. It is widely used in many new functions libraries and Microsoft Windows environments. On the other hand, the underline method became popular after the emergence of C. It is widely used in many old programs and UNIX environments.

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.