'How to set point of rotation in pyqt Qtransformed?

I am trying to rotate Qpixmap with Qtransformed, it seems the point of rotation is center of pixmap by default, how can i define custom point for example top mid of pixmap?

def rotate_pixmap(self):

    pixmap = QtGui.QPixmap("image.png")
    self.rotation += 1
    transform = QtGui.QTransform().rotate(self.rotation)
    pixmap = pixmap.transformed(transform, QtCore.Qt.SmoothTransformation)
    self.label.setPixmap(pixmap)


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source