1, use QT Object-oriented class inheritance to create the first window main part, using Setminimumsize (), setmaximumsize () to configure the main part window can be resize;
Qwidget::setgeometry () window size on the screen display position
The Qwidget::setgeometry () function sets the size and position of the window when it is first displayed on the screen and can be moved or resized after the window is displayed;
Qwidget::setgeometry () Interpretation of 4 function parameters
The first 2 parameters determine the position of the window over the entire display, and the last two parameters determine the size of the window (length and width)
Setminimumsize (), setmaximumsize ();
2, Main widget Add object (Button,scroll Bar,label)
Add the object to the window and use the window, because the window is nothing to do!!!
Add an object to a newly created window, This-pointer is important when you add an object
Test Add a button to the main part window
Part codes
QT Development preliminary, gradual, prerequest for blueprint reverse attack