QRect myRect(50, 50, 100, 100); myRect.adjust(0, 0, 10, 10);
QRect myRect(50, 50, 100, 100); myRect.adjust(-20, 0, 0, 0);In this example, the original rectangle is (50, 50, 100, 100). The adjust function subtracts 20 from the x position of the rectangle, resulting in the new rectangle (30, 50, 100, 100). The QRect adjust function is part of the Qt Core library.