Skip to content

PythonQt.Qt.QPainter__PixmapFragment

QPainter__PixmapFragment

PythonQtInstanceWrapper object

Native bases: PythonQtInstanceWrapper

Supplemental documentation: Qt 5 reference:

Detailed Description

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.

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

Complete member index

Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.

Member Kind Signature Summary
__init__ function (self, *args: Any, **kwargs: Any) -> None Native constructor; consult class documentation for supported overloads. (shared captured text)
className function (self, *args: Any, **kwargs: Any) -> Any Return the classname of the object (shared captured text)
create function (self, *args: Any, **kwargs: Any) -> Any X._PixmapFragment_create(pos, sourceRect, scaleX, scaleY, rotation, opacity) -> PythonQt.QtGui.QPainter::PixmapFragment
delete function (self, *args: Any, **kwargs: Any) -> Any Deletes the C++ object (at your own risk, my friend!) (shared captured text)
height attribute Any (shared captured text)
help function (self, *args: Any, **kwargs: Any) -> Any Shows the help of available methods for this class (shared captured text)
inherits function (self, *args: Any, **kwargs: Any) -> Any Returns if the class inherits or is of given type name (shared captured text)
opacity attribute Any (shared captured text)
rotation attribute Any (shared captured text)
scaleX attribute Any
scaleY attribute Any
sourceLeft attribute Any
sourceTop attribute Any
width attribute Any (shared captured text)
x attribute Any (shared captured text)
y attribute Any (shared captured text)