QRect myRect(10, 10, 50, 50); myRect.adjust(5, 5, -5, -5);
QRect myRect(0, 0, 100, 100); myRect.adjust(-10, -10, 10, 10);This code creates a rectangle with top-left corner at (0, 0) and a width and height of 100. The `adjust` function is then called with arguments of -10, -10, 10, 10 - this means to subtract 10 from the x-coordinate of the top-left corner, subtract 10 from the y-coordinate of the top-left corner, add 10 to the x-coordinate of the bottom-right corner, and add 10 to the y-coordinate of the bottom-right corner. After this call, `myRect` will have the same center point, but will be slightly larger. The Qt library contains the QRect class and its related functions.