This class was introduced in Qt 4.7
This class is used in conjunction with the QPainter.drawPixmapFragments() function to specify how a pixmap, or sub-rect of a pixmap, is drawn.
The sourceLeft , sourceTop , width and height variables are used as a source rectangle within the pixmap passed into the QPainter.drawPixmapFragments() function. The variables x , y , width and height are used to calculate the target rectangle that is drawn. x and y denotes the center of the target rectangle. The width and height in the target rectangle is scaled by the scaleX and scaleY values. The resulting target rectangle is then rotated rotation degrees around the x , y center point.
|Parameters:||PixmapFragment – PySide.QtGui.QPainter::PixmapFragment|
This is a convenience function that returns a QPainter.PixmapFragment that is initialized with the pos , sourceRect , scaleX , scaleY , rotation , opacity parameters.