I have two questions.

First I am displaying a scaled image in a QLabel object on the Ui. Is it more efficient to scale the QImage before transforming into the QPixmap or is it more efficient to convert it into the QPixmap and then scaling it?

Second I am using the KeepAspectRationByExpanding option. This displays the image from the top, left which means the center of the image may potentially fall outside of the label. Is there an easy way to change it to display the center of the image at the physical center of the label and let the outsides of the image be truncated?

I'm trying to avoid getting into writing my own paint routine for this, I've never tried that and don't have much time to learn the basics of custom paint functions. Is there another way?