When rotating an image about its center (code below) the corers get cut off. It needs to just be a little wider and a little taller. Is there a calculation already in Qt?How can I find the proper size that out should be, and where to place the image for drawImage within the new bounding box?