Control form Region sensitivity
Geometric parameters: refers to the size and position of the window, a window has two sets of geometric parameters, a set of the window outside the bounding rectangle area, the other is the window client area occupied by the rectangular area, the so-called window client area is the window to remove the border and the title bar to display the content of the area
For a widget, the two sets of geometric parameters are consistent
Const Qrect &geometry () const; Get Customer Area Geometry parameters
void Setgeometry (int x, int y, int w, int h); Set Customer Area Geometry parameters
void Setgeometry (const qrect &rect); Set Customer Area Geometry parameters
Qrect framgeometry () const; Get outer box geometry parameters
Qsize framesize () const; Get the window size of the outer border
void Move (int x, int y); Move the upper-left corner of the window at the expiry coordinates (x, y) (outer border geometric parameters)
void Move (const qpoint &pos0; Move the upper-left corner of the window to the POS (outer border geometry parameter)
void Resize (int w, int h); Change the width of the window to W and the height to H (Customer area geometry parameter)
void Resize (const qsize &size); Change the size of the window to size (customer area geometry parameter)
Qrect rect () const; Gets the window client area, which obtains coordinates relative to the window's own client area, which means that the horizontal ordinate is always 0
QT Control Form Region sensitivity