QRectangle align functions added