Skip to content

PythonQt.Qt.QPainter__PixmapFragment · declarations 001

Back to PythonQt.Qt.QPainter__PixmapFragment

create

create(*args: Any, **kwargs: Any) -> Any

X._PixmapFragment_create(pos, sourceRect, scaleX, scaleY, rotation, opacity) -> PythonQt.QtGui.QPainter::PixmapFragment

Supplemental documentation: Qt 5 reference:

[static] PixmapFragment PixmapFragment::create(const QPointF \&pos, const QRectF \&sourceRect, qreal scaleX \= 1, qreal scaleY \= 1, qreal rotation \= 0, qreal opacity \= 1)

This is a convenience function that returns a QPainter::PixmapFragment that is initialized with the pos, sourceRect, scaleX, scaleY, rotation, opacity parameters.

This function was introduced in Qt 4.7.

Source: https://doc.qt.io/archives/qt-5.15/qpainter-pixmapfragment.html#create

scaleX instance-attribute

scaleX: Any

scaleY instance-attribute

scaleY: Any

sourceLeft instance-attribute

sourceLeft: Any

sourceTop instance-attribute

sourceTop: Any