Steps of construction :
Draw a line segment AC = 6 cm.
Mark mid-point of AC as O.
From point O draw QR, at an angle of 45°.
With O as center and radius equal to 3 cm cut off OB and OD from QR.
Join BC, CD, AD and AB.
Hence, ABCD is the required rectangle.