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