QT Control Form Region sensitivity

Source: Internet
Author: User

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

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.