vs. QT Discovery 02

Source: Internet
Author: User
Tags qt designer

Look at the C + + GUI QT4 tutorial, and explore the programming learning side of VS2010.

When using QT designers, the objectname attribute of each object is very important, and the variable name needs to be used continuously during the implementation of the program function.

When all the object properties have been set, a second. h file is automatically generated in VS2010 by right-clicking the *.ui file and selecting Compile (Ctrl+f7), and one of the classes in it contains all the properties of the object, as shown in:

And in the VS auto-generated *.h file, there will be a variable name for that class to access the property values of each object that you changed in the QT designer, so that we can locate access to that object when we implement a feature

and set new values for these objects in the constructor, as follows:

You can also make changes to the object in the private slot function, and so on

As can be seen from the above process, these operations are logical, easy to understand and easy to master. Next, continue to explore and understand QT, learning slowly

vs. QT Discovery 02

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.