KLayout 0.29.8 (2024-11-26 926dac96c) [master]

API reference - Class QPainter

Notation used in Ruby API documentation

Module: QtGui

Description: Binding of QPainter

Sub-classes: CompositionMode, QFlags_CompositionMode, PixmapFragmentHint, QFlags_PixmapFragmentHint, RenderHint, QFlags_RenderHint, PixmapFragment

Public constructors

new QPainternewConstructor QPainter::QPainter()
new QPainternew(QPaintDevice ptr arg1)Constructor QPainter::QPainter(QPaintDevice *)

Public methods

[const]QPainter ptr_const_castReturns a non-const reference to self.
void_createEnsures the C++ object is created
void_destroyExplicitly destroys the object
[const]bool_destroyed?Returns a value indicating whether the object was already destroyed
[const]bool_is_const_object?Returns a value indicating whether the reference is a const reference
void_manageMarks the object as managed by the script side.
void_unmanageMarks the object as no longer owned by the script side.
[const]QBrushbackgroundMethod const QBrush &QPainter::background()
voidbackground=(const QBrush bg)Method void QPainter::setBackground(const QBrush &bg)
[const]Qt_BGModebackgroundModeMethod Qt::BGMode QPainter::backgroundMode()
voidbackgroundMode=(const Qt_BGMode mode)Method void QPainter::setBackgroundMode(Qt::BGMode mode)
boolbegin(QPaintDevice ptr arg1)Method bool QPainter::begin(QPaintDevice *)
voidbeginNativePaintingMethod void QPainter::beginNativePainting()
QRectFboundingRect(const QRectF rect,
int flags,
string text)
Method QRectF QPainter::boundingRect(const QRectF &rect, int flags, const QString &text)
QRectboundingRect(const QRect rect,
int flags,
string text)
Method QRect QPainter::boundingRect(const QRect &rect, int flags, const QString &text)
QRectboundingRect(int x,
int y,
int w,
int h,
int flags,
string text)
Method QRect QPainter::boundingRect(int x, int y, int w, int h, int flags, const QString &text)
QRectFboundingRect(const QRectF rect,
string text,
const QTextOption o = QTextOption())
Method QRectF QPainter::boundingRect(const QRectF &rect, const QString &text, const QTextOption &o)
[const]QBrushbrushMethod const QBrush &QPainter::brush()
voidbrush=(const QBrush brush)Method void QPainter::setBrush(const QBrush &brush)
voidbrush=(const Qt_BrushStyle style)Method void QPainter::setBrush(Qt::BrushStyle style)
[const]QPointbrushOriginMethod QPoint QPainter::brushOrigin()
voidbrushOrigin=(const QPoint arg1)Method void QPainter::setBrushOrigin(const QPoint &)
voidbrushOrigin=(const QPointF arg1)Method void QPainter::setBrushOrigin(const QPointF &)
[const]QRectFclipBoundingRectMethod QRectF QPainter::clipBoundingRect()
[const]QPainterPathclipPathMethod QPainterPath QPainter::clipPath()
[const]QRegionclipRegionMethod QRegion QPainter::clipRegion()
[const]boolclippingMethod bool QPainter::hasClipping()
voidclipping=(bool enable)Method void QPainter::setClipping(bool enable)
[const]QMatrixcombinedMatrixMethod QMatrix QPainter::combinedMatrix()
[const]QTransformcombinedTransformMethod QTransform QPainter::combinedTransform()
[const]QPainter_CompositionModecompositionModeMethod QPainter::CompositionMode QPainter::compositionMode()
voidcompositionMode=(const QPainter_CompositionMode mode)Method void QPainter::setCompositionMode(QPainter::CompositionMode mode)
[const]QPaintDevice ptrdeviceMethod QPaintDevice *QPainter::device()
[const]QMatrixdeviceMatrixMethod const QMatrix &QPainter::deviceMatrix()
[const]QTransformdeviceTransformMethod const QTransform &QPainter::deviceTransform()
voiddrawArc(const QRectF rect,
int a,
int alen)
Method void QPainter::drawArc(const QRectF &rect, int a, int alen)
voiddrawArc(const QRect arg1,
int a,
int alen)
Method void QPainter::drawArc(const QRect &, int a, int alen)
voiddrawArc(int x,
int y,
int w,
int h,
int a,
int alen)
Method void QPainter::drawArc(int x, int y, int w, int h, int a, int alen)
voiddrawChord(const QRectF rect,
int a,
int alen)
Method void QPainter::drawChord(const QRectF &rect, int a, int alen)
voiddrawChord(int x,
int y,
int w,
int h,
int a,
int alen)
Method void QPainter::drawChord(int x, int y, int w, int h, int a, int alen)
voiddrawChord(const QRect arg1,
int a,
int alen)
Method void QPainter::drawChord(const QRect &, int a, int alen)
voiddrawConvexPolygon(const QPolygonF polygon)Method void QPainter::drawConvexPolygon(const QPolygonF &polygon)
voiddrawConvexPolygon(const QPolygon polygon)Method void QPainter::drawConvexPolygon(const QPolygon &polygon)
voiddrawEllipse(const QRectF r)Method void QPainter::drawEllipse(const QRectF &r)
voiddrawEllipse(const QRect r)Method void QPainter::drawEllipse(const QRect &r)
voiddrawEllipse(int x,
int y,
int w,
int h)
Method void QPainter::drawEllipse(int x, int y, int w, int h)
voiddrawEllipse(const QPointF center,
double rx,
double ry)
Method void QPainter::drawEllipse(const QPointF &center, double rx, double ry)
voiddrawEllipse(const QPoint center,
int rx,
int ry)
Method void QPainter::drawEllipse(const QPoint &center, int rx, int ry)
voiddrawGlyphRun(const QPointF position,
const QGlyphRun glyphRun)
Method void QPainter::drawGlyphRun(const QPointF &position, const QGlyphRun &glyphRun)
voiddrawImage(const QRectF targetRect,
const QImage image,
const QRectF sourceRect,
Qt_QFlags_ImageConversionFlag flags = Qt::AutoColor)
Method void QPainter::drawImage(const QRectF &targetRect, const QImage &image, const QRectF &sourceRect, QFlags<Qt::ImageConversionFlag> flags)
voiddrawImage(const QRect targetRect,
const QImage image,
const QRect sourceRect,
Qt_QFlags_ImageConversionFlag flags = Qt::AutoColor)
Method void QPainter::drawImage(const QRect &targetRect, const QImage &image, const QRect &sourceRect, QFlags<Qt::ImageConversionFlag> flags)
voiddrawImage(const QPointF p,
const QImage image,
const QRectF sr,
Qt_QFlags_ImageConversionFlag flags = Qt::AutoColor)
Method void QPainter::drawImage(const QPointF &p, const QImage &image, const QRectF &sr, QFlags<Qt::ImageConversionFlag> flags)
voiddrawImage(const QPoint p,
const QImage image,
const QRect sr,
Qt_QFlags_ImageConversionFlag flags = Qt::AutoColor)
Method void QPainter::drawImage(const QPoint &p, const QImage &image, const QRect &sr, QFlags<Qt::ImageConversionFlag> flags)
voiddrawImage(const QRectF r,
const QImage image)
Method void QPainter::drawImage(const QRectF &r, const QImage &image)
voiddrawImage(const QRect r,
const QImage image)
Method void QPainter::drawImage(const QRect &r, const QImage &image)
voiddrawImage(const QPointF p,
const QImage image)
Method void QPainter::drawImage(const QPointF &p, const QImage &image)
voiddrawImage(const QPoint p,
const QImage image)
Method void QPainter::drawImage(const QPoint &p, const QImage &image)
voiddrawImage(int x,
int y,
const QImage image,
int sx = 0,
int sy = 0,
int sw = -1,
int sh = -1,
Qt_QFlags_ImageConversionFlag flags = Qt::AutoColor)
Method void QPainter::drawImage(int x, int y, const QImage &image, int sx, int sy, int sw, int sh, QFlags<Qt::ImageConversionFlag> flags)
voiddrawLine(const QLineF line)Method void QPainter::drawLine(const QLineF &line)
voiddrawLine(const QLine line)Method void QPainter::drawLine(const QLine &line)
voiddrawLine(int x1,
int y1,
int x2,
int y2)
Method void QPainter::drawLine(int x1, int y1, int x2, int y2)
voiddrawLine(const QPoint p1,
const QPoint p2)
Method void QPainter::drawLine(const QPoint &p1, const QPoint &p2)
voiddrawLine(const QPointF p1,
const QPointF p2)
Method void QPainter::drawLine(const QPointF &p1, const QPointF &p2)
voiddrawLines_f(QLineF[] lines)Method void QPainter::drawLines(const QVector<QLineF> &lines)
voiddrawLines_fp(QPointF[] pointPairs)Method void QPainter::drawLines(const QVector<QPointF> &pointPairs)
voiddrawLines_i(QLine[] lines)Method void QPainter::drawLines(const QVector<QLine> &lines)
voiddrawLines_ip(QPoint[] pointPairs)Method void QPainter::drawLines(const QVector<QPoint> &pointPairs)
voiddrawPath(const QPainterPath path)Method void QPainter::drawPath(const QPainterPath &path)
voiddrawPicture(const QPointF p,
const QPicture picture)
Method void QPainter::drawPicture(const QPointF &p, const QPicture &picture)
voiddrawPicture(int x,
int y,
const QPicture picture)
Method void QPainter::drawPicture(int x, int y, const QPicture &picture)
voiddrawPicture(const QPoint p,
const QPicture picture)
Method void QPainter::drawPicture(const QPoint &p, const QPicture &picture)
voiddrawPie(const QRectF rect,
int a,
int alen)
Method void QPainter::drawPie(const QRectF &rect, int a, int alen)
voiddrawPie(int x,
int y,
int w,
int h,
int a,
int alen)
Method void QPainter::drawPie(int x, int y, int w, int h, int a, int alen)
voiddrawPie(const QRect arg1,
int a,
int alen)
Method void QPainter::drawPie(const QRect &, int a, int alen)
voiddrawPixmap(const QRectF targetRect,
const QPixmap pixmap,
const QRectF sourceRect)
Method void QPainter::drawPixmap(const QRectF &targetRect, const QPixmap &pixmap, const QRectF &sourceRect)
voiddrawPixmap(const QRect targetRect,
const QPixmap pixmap,
const QRect sourceRect)
Method void QPainter::drawPixmap(const QRect &targetRect, const QPixmap &pixmap, const QRect &sourceRect)
voiddrawPixmap(int x,
int y,
int w,
int h,
const QPixmap pm,
int sx,
int sy,
int sw,
int sh)
Method void QPainter::drawPixmap(int x, int y, int w, int h, const QPixmap &pm, int sx, int sy, int sw, int sh)
voiddrawPixmap(int x,
int y,
const QPixmap pm,
int sx,
int sy,
int sw,
int sh)
Method void QPainter::drawPixmap(int x, int y, const QPixmap &pm, int sx, int sy, int sw, int sh)
voiddrawPixmap(const QPointF p,
const QPixmap pm,
const QRectF sr)
Method void QPainter::drawPixmap(const QPointF &p, const QPixmap &pm, const QRectF &sr)
voiddrawPixmap(const QPoint p,
const QPixmap pm,
const QRect sr)
Method void QPainter::drawPixmap(const QPoint &p, const QPixmap &pm, const QRect &sr)
voiddrawPixmap(const QPointF p,
const QPixmap pm)
Method void QPainter::drawPixmap(const QPointF &p, const QPixmap &pm)
voiddrawPixmap(const QPoint p,
const QPixmap pm)
Method void QPainter::drawPixmap(const QPoint &p, const QPixmap &pm)
voiddrawPixmap(int x,
int y,
const QPixmap pm)
Method void QPainter::drawPixmap(int x, int y, const QPixmap &pm)
voiddrawPixmap(const QRect r,
const QPixmap pm)
Method void QPainter::drawPixmap(const QRect &r, const QPixmap &pm)
voiddrawPixmap(int x,
int y,
int w,
int h,
const QPixmap pm)
Method void QPainter::drawPixmap(int x, int y, int w, int h, const QPixmap &pm)
voiddrawPixmapFragments(const QPainter_PixmapFragment ptr fragments,
int fragmentCount,
const QPixmap pixmap,
QPainter_QFlags_PixmapFragmentHint hints = QPainter::PixmapFragmentHints())
Method void QPainter::drawPixmapFragments(const QPainter::PixmapFragment *fragments, int fragmentCount, const QPixmap &pixmap, QFlags<QPainter::PixmapFragmentHint> hints)
voiddrawPoint(const QPointF pt)Method void QPainter::drawPoint(const QPointF &pt)
voiddrawPoint(const QPoint p)Method void QPainter::drawPoint(const QPoint &p)
voiddrawPoint(int x,
int y)
Method void QPainter::drawPoint(int x, int y)
voiddrawPoints(const QPolygonF points)Method void QPainter::drawPoints(const QPolygonF &points)
voiddrawPoints(const QPolygon points)Method void QPainter::drawPoints(const QPolygon &points)
voiddrawPolygon(const QPolygonF polygon,
const Qt_FillRule fillRule = Qt::OddEvenFill)
Method void QPainter::drawPolygon(const QPolygonF &polygon, Qt::FillRule fillRule)
voiddrawPolygon(const QPolygon polygon,
const Qt_FillRule fillRule = Qt::OddEvenFill)
Method void QPainter::drawPolygon(const QPolygon &polygon, Qt::FillRule fillRule)
voiddrawPolyline(const QPolygonF polyline)Method void QPainter::drawPolyline(const QPolygonF &polyline)
voiddrawPolyline(const QPolygon polygon)Method void QPainter::drawPolyline(const QPolygon &polygon)
voiddrawRect(const QRectF rect)Method void QPainter::drawRect(const QRectF &rect)
voiddrawRect(int x1,
int y1,
int w,
int h)
Method void QPainter::drawRect(int x1, int y1, int w, int h)
voiddrawRect(const QRect rect)Method void QPainter::drawRect(const QRect &rect)
voiddrawRects_f(QRectF[] rectangles)Method void QPainter::drawRects(const QVector<QRectF> &rectangles)
voiddrawRects_i(QRect[] rectangles)Method void QPainter::drawRects(const QVector<QRect> &rectangles)
voiddrawRoundRect(const QRectF r,
int xround = 25,
int yround = 25)
Method void QPainter::drawRoundRect(const QRectF &r, int xround, int yround)
voiddrawRoundRect(int x,
int y,
int w,
int h,
int arg5 = 25,
int arg6 = 25)
Method void QPainter::drawRoundRect(int x, int y, int w, int h, int, int)
voiddrawRoundRect(const QRect r,
int xround = 25,
int yround = 25)
Method void QPainter::drawRoundRect(const QRect &r, int xround, int yround)
voiddrawRoundedRect(const QRectF rect,
double xRadius,
double yRadius,
const Qt_SizeMode mode = Qt::AbsoluteSize)
Method void QPainter::drawRoundedRect(const QRectF &rect, double xRadius, double yRadius, Qt::SizeMode mode)
voiddrawRoundedRect(int x,
int y,
int w,
int h,
double xRadius,
double yRadius,
const Qt_SizeMode mode = Qt::AbsoluteSize)
Method void QPainter::drawRoundedRect(int x, int y, int w, int h, double xRadius, double yRadius, Qt::SizeMode mode)
voiddrawRoundedRect(const QRect rect,
double xRadius,
double yRadius,
const Qt_SizeMode mode = Qt::AbsoluteSize)
Method void QPainter::drawRoundedRect(const QRect &rect, double xRadius, double yRadius, Qt::SizeMode mode)
voiddrawStaticText(const QPointF topLeftPosition,
const QStaticText staticText)
Method void QPainter::drawStaticText(const QPointF &topLeftPosition, const QStaticText &staticText)
voiddrawStaticText(const QPoint topLeftPosition,
const QStaticText staticText)
Method void QPainter::drawStaticText(const QPoint &topLeftPosition, const QStaticText &staticText)
voiddrawStaticText(int left,
int top,
const QStaticText staticText)
Method void QPainter::drawStaticText(int left, int top, const QStaticText &staticText)
voiddrawText(const QPointF p,
string s)
Method void QPainter::drawText(const QPointF &p, const QString &s)
voiddrawText(const QPoint p,
string s)
Method void QPainter::drawText(const QPoint &p, const QString &s)
voiddrawText(int x,
int y,
string s)
Method void QPainter::drawText(int x, int y, const QString &s)
voiddrawText(const QPointF p,
string str,
int tf,
int justificationPadding)
Method void QPainter::drawText(const QPointF &p, const QString &str, int tf, int justificationPadding)
voiddrawText(const QRectF r,
int flags,
string text,
QRectF ptr br = nullptr)
Method void QPainter::drawText(const QRectF &r, int flags, const QString &text, QRectF *br)
voiddrawText(const QRect r,
int flags,
string text,
QRect ptr br = nullptr)
Method void QPainter::drawText(const QRect &r, int flags, const QString &text, QRect *br)
voiddrawText(int x,
int y,
int w,
int h,
int flags,
string text,
QRect ptr br = nullptr)
Method void QPainter::drawText(int x, int y, int w, int h, int flags, const QString &text, QRect *br)
voiddrawText(const QRectF r,
string text,
const QTextOption o = QTextOption())
Method void QPainter::drawText(const QRectF &r, const QString &text, const QTextOption &o)
voiddrawTextItem(const QPointF p,
const QTextItem ti)
Method void QPainter::drawTextItem(const QPointF &p, const QTextItem &ti)
voiddrawTextItem(int x,
int y,
const QTextItem ti)
Method void QPainter::drawTextItem(int x, int y, const QTextItem &ti)
voiddrawTextItem(const QPoint p,
const QTextItem ti)
Method void QPainter::drawTextItem(const QPoint &p, const QTextItem &ti)
voiddrawTiledPixmap(const QRectF rect,
const QPixmap pm,
const QPointF offset = QPointF())
Method void QPainter::drawTiledPixmap(const QRectF &rect, const QPixmap &pm, const QPointF &offset)
voiddrawTiledPixmap(int x,
int y,
int w,
int h,
const QPixmap arg5,
int sx = 0,
int sy = 0)
Method void QPainter::drawTiledPixmap(int x, int y, int w, int h, const QPixmap &, int sx, int sy)
voiddrawTiledPixmap(const QRect arg1,
const QPixmap arg2,
const QPoint arg3 = QPoint())
Method void QPainter::drawTiledPixmap(const QRect &, const QPixmap &, const QPoint &)
boolendMethod bool QPainter::end()
voidendNativePaintingMethod void QPainter::endNativePainting()
voideraseRect(const QRectF arg1)Method void QPainter::eraseRect(const QRectF &)
voideraseRect(int x,
int y,
int w,
int h)
Method void QPainter::eraseRect(int x, int y, int w, int h)
voideraseRect(const QRect arg1)Method void QPainter::eraseRect(const QRect &)
voidfillPath(const QPainterPath path,
const QBrush brush)
Method void QPainter::fillPath(const QPainterPath &path, const QBrush &brush)
voidfillRect(const QRectF arg1,
const QBrush arg2)
Method void QPainter::fillRect(const QRectF &, const QBrush &)
voidfillRect(int x,
int y,
int w,
int h,
const QBrush arg5)
Method void QPainter::fillRect(int x, int y, int w, int h, const QBrush &)
voidfillRect(const QRect arg1,
const QBrush arg2)
Method void QPainter::fillRect(const QRect &, const QBrush &)
voidfillRect(const QRectF arg1,
const QColor color)
Method void QPainter::fillRect(const QRectF &, const QColor &color)
voidfillRect(int x,
int y,
int w,
int h,
const QColor color)
Method void QPainter::fillRect(int x, int y, int w, int h, const QColor &color)
voidfillRect(const QRect arg1,
const QColor color)
Method void QPainter::fillRect(const QRect &, const QColor &color)
voidfillRect(int x,
int y,
int w,
int h,
const Qt_GlobalColor c)
Method void QPainter::fillRect(int x, int y, int w, int h, Qt::GlobalColor c)
voidfillRect(const QRect r,
const Qt_GlobalColor c)
Method void QPainter::fillRect(const QRect &r, Qt::GlobalColor c)
voidfillRect(const QRectF r,
const Qt_GlobalColor c)
Method void QPainter::fillRect(const QRectF &r, Qt::GlobalColor c)
voidfillRect(int x,
int y,
int w,
int h,
const Qt_BrushStyle style)
Method void QPainter::fillRect(int x, int y, int w, int h, Qt::BrushStyle style)
voidfillRect(const QRect r,
const Qt_BrushStyle style)
Method void QPainter::fillRect(const QRect &r, Qt::BrushStyle style)
voidfillRect(const QRectF r,
const Qt_BrushStyle style)
Method void QPainter::fillRect(const QRectF &r, Qt::BrushStyle style)
voidfillRect(int x,
int y,
int w,
int h,
const QGradient_Preset preset)
Method void QPainter::fillRect(int x, int y, int w, int h, QGradient::Preset preset)
voidfillRect(const QRect r,
const QGradient_Preset preset)
Method void QPainter::fillRect(const QRect &r, QGradient::Preset preset)
voidfillRect(const QRectF r,
const QGradient_Preset preset)
Method void QPainter::fillRect(const QRectF &r, QGradient::Preset preset)
[const]QFontfontMethod const QFont &QPainter::font()
voidfont=(const QFont f)Method void QPainter::setFont(const QFont &f)
[const]QFontInfofontInfoMethod QFontInfo QPainter::fontInfo()
[const]QFontMetricsfontMetricsMethod QFontMetrics QPainter::fontMetrics()
[const]boolhasClippingMethod bool QPainter::hasClipping()
voidinitFrom(const QPaintDevice ptr device)Method void QPainter::initFrom(const QPaintDevice *device)
[const]boolisActive?Method bool QPainter::isActive()
[const]Qt_LayoutDirectionlayoutDirectionMethod Qt::LayoutDirection QPainter::layoutDirection()
voidlayoutDirection=(const Qt_LayoutDirection direction)Method void QPainter::setLayoutDirection(Qt::LayoutDirection direction)
[const]QMatrixmatrixMethod const QMatrix &QPainter::matrix()
[const]boolmatrixEnabledMethod bool QPainter::matrixEnabled()
voidmatrixEnabled=(bool enabled)Method void QPainter::setMatrixEnabled(bool enabled)
[const]doubleopacityMethod double QPainter::opacity()
voidopacity=(double opacity)Method void QPainter::setOpacity(double opacity)
[const]QPaintEngine ptrpaintEngineMethod QPaintEngine *QPainter::paintEngine()
[const]QPenpenMethod const QPen &QPainter::pen()
[const]QPainter_QFlags_RenderHintrenderHintsMethod QFlags<QPainter::RenderHint> QPainter::renderHints()
voidresetMatrixMethod void QPainter::resetMatrix()
voidresetTransformMethod void QPainter::resetTransform()
voidrestoreMethod void QPainter::restore()
voidrotate(double a)Method void QPainter::rotate(double a)
voidsaveMethod void QPainter::save()
voidscale(double sx,
double sy)
Method void QPainter::scale(double sx, double sy)
voidsetBackground(const QBrush bg)Method void QPainter::setBackground(const QBrush &bg)
voidsetBackgroundMode(const Qt_BGMode mode)Method void QPainter::setBackgroundMode(Qt::BGMode mode)
voidsetBrush(const QBrush brush)Method void QPainter::setBrush(const QBrush &brush)
voidsetBrush(const Qt_BrushStyle style)Method void QPainter::setBrush(Qt::BrushStyle style)
voidsetBrushOrigin(int x,
int y)
Method void QPainter::setBrushOrigin(int x, int y)
voidsetBrushOrigin(const QPoint arg1)Method void QPainter::setBrushOrigin(const QPoint &)
voidsetBrushOrigin(const QPointF arg1)Method void QPainter::setBrushOrigin(const QPointF &)
voidsetClipPath(const QPainterPath path,
const Qt_ClipOperation op = Qt::ReplaceClip)
Method void QPainter::setClipPath(const QPainterPath &path, Qt::ClipOperation op)
voidsetClipRect(const QRectF arg1,
const Qt_ClipOperation op = Qt::ReplaceClip)
Method void QPainter::setClipRect(const QRectF &, Qt::ClipOperation op)
voidsetClipRect(const QRect arg1,
const Qt_ClipOperation op = Qt::ReplaceClip)
Method void QPainter::setClipRect(const QRect &, Qt::ClipOperation op)
voidsetClipRect(int x,
int y,
int w,
int h,
const Qt_ClipOperation op = Qt::ReplaceClip)
Method void QPainter::setClipRect(int x, int y, int w, int h, Qt::ClipOperation op)
voidsetClipRegion(const QRegion arg1,
const Qt_ClipOperation op = Qt::ReplaceClip)
Method void QPainter::setClipRegion(const QRegion &, Qt::ClipOperation op)
voidsetClipping(bool enable)Method void QPainter::setClipping(bool enable)
voidsetCompositionMode(const QPainter_CompositionMode mode)Method void QPainter::setCompositionMode(QPainter::CompositionMode mode)
voidsetFont(const QFont f)Method void QPainter::setFont(const QFont &f)
voidsetLayoutDirection(const Qt_LayoutDirection direction)Method void QPainter::setLayoutDirection(Qt::LayoutDirection direction)
voidsetMatrix(const QMatrix matrix,
bool combine = false)
Method void QPainter::setMatrix(const QMatrix &matrix, bool combine)
voidsetMatrixEnabled(bool enabled)Method void QPainter::setMatrixEnabled(bool enabled)
voidsetOpacity(double opacity)Method void QPainter::setOpacity(double opacity)
voidsetPen(const QColor color)Method void QPainter::setPen(const QColor &color)
voidsetPen(const QPen pen)Method void QPainter::setPen(const QPen &pen)
voidsetPen(const Qt_PenStyle style)Method void QPainter::setPen(Qt::PenStyle style)
voidsetRenderHint(const QPainter_RenderHint hint,
bool on = true)
Method void QPainter::setRenderHint(QPainter::RenderHint hint, bool on)
voidsetRenderHints(QPainter_QFlags_RenderHint hints,
bool on = true)
Method void QPainter::setRenderHints(QFlags<QPainter::RenderHint> hints, bool on)
voidsetTransform(const QTransform transform,
bool combine = false)
Method void QPainter::setTransform(const QTransform &transform, bool combine)
voidsetViewTransformEnabled(bool enable)Method void QPainter::setViewTransformEnabled(bool enable)
voidsetViewport(const QRect viewport)Method void QPainter::setViewport(const QRect &viewport)
voidsetViewport(int x,
int y,
int w,
int h)
Method void QPainter::setViewport(int x, int y, int w, int h)
voidsetWindow(const QRect window)Method void QPainter::setWindow(const QRect &window)
voidsetWindow(int x,
int y,
int w,
int h)
Method void QPainter::setWindow(int x, int y, int w, int h)
voidsetWorldMatrix(const QMatrix matrix,
bool combine = false)
Method void QPainter::setWorldMatrix(const QMatrix &matrix, bool combine)
voidsetWorldMatrixEnabled(bool enabled)Method void QPainter::setWorldMatrixEnabled(bool enabled)
voidsetWorldTransform(const QTransform matrix,
bool combine = false)
Method void QPainter::setWorldTransform(const QTransform &matrix, bool combine)
voidshear(double sh,
double sv)
Method void QPainter::shear(double sh, double sv)
voidstrokePath(const QPainterPath path,
const QPen pen)
Method void QPainter::strokePath(const QPainterPath &path, const QPen &pen)
[const]booltestRenderHint(const QPainter_RenderHint hint)Method bool QPainter::testRenderHint(QPainter::RenderHint hint)
[const]QTransformtransformMethod const QTransform &QPainter::transform()
voidtranslate(const QPointF offset)Method void QPainter::translate(const QPointF &offset)
voidtranslate(const QPoint offset)Method void QPainter::translate(const QPoint &offset)
voidtranslate(double dx,
double dy)
Method void QPainter::translate(double dx, double dy)
[const]boolviewTransformEnabledMethod bool QPainter::viewTransformEnabled()
voidviewTransformEnabled=(bool enable)Method void QPainter::setViewTransformEnabled(bool enable)
[const]QRectviewportMethod QRect QPainter::viewport()
voidviewport=(const QRect viewport)Method void QPainter::setViewport(const QRect &viewport)
[const]QRectwindowMethod QRect QPainter::window()
voidwindow=(const QRect window)Method void QPainter::setWindow(const QRect &window)
[const]QMatrixworldMatrixMethod const QMatrix &QPainter::worldMatrix()
[const]boolworldMatrixEnabledMethod bool QPainter::worldMatrixEnabled()
voidworldMatrixEnabled=(bool enabled)Method void QPainter::setWorldMatrixEnabled(bool enabled)
[const]QTransformworldTransformMethod const QTransform &QPainter::worldTransform()

Public static methods and constants

[static,const]QPainter_RenderHintAntialiasingEnum constant QPainter::Antialiasing
[static,const]QPainter_CompositionModeCompositionMode_ClearEnum constant QPainter::CompositionMode_Clear
[static,const]QPainter_CompositionModeCompositionMode_ColorBurnEnum constant QPainter::CompositionMode_ColorBurn
[static,const]QPainter_CompositionModeCompositionMode_ColorDodgeEnum constant QPainter::CompositionMode_ColorDodge
[static,const]QPainter_CompositionModeCompositionMode_DarkenEnum constant QPainter::CompositionMode_Darken
[static,const]QPainter_CompositionModeCompositionMode_DestinationEnum constant QPainter::CompositionMode_Destination
[static,const]QPainter_CompositionModeCompositionMode_DestinationAtopEnum constant QPainter::CompositionMode_DestinationAtop
[static,const]QPainter_CompositionModeCompositionMode_DestinationInEnum constant QPainter::CompositionMode_DestinationIn
[static,const]QPainter_CompositionModeCompositionMode_DestinationOutEnum constant QPainter::CompositionMode_DestinationOut
[static,const]QPainter_CompositionModeCompositionMode_DestinationOverEnum constant QPainter::CompositionMode_DestinationOver
[static,const]QPainter_CompositionModeCompositionMode_DifferenceEnum constant QPainter::CompositionMode_Difference
[static,const]QPainter_CompositionModeCompositionMode_ExclusionEnum constant QPainter::CompositionMode_Exclusion
[static,const]QPainter_CompositionModeCompositionMode_HardLightEnum constant QPainter::CompositionMode_HardLight
[static,const]QPainter_CompositionModeCompositionMode_LightenEnum constant QPainter::CompositionMode_Lighten
[static,const]QPainter_CompositionModeCompositionMode_MultiplyEnum constant QPainter::CompositionMode_Multiply
[static,const]QPainter_CompositionModeCompositionMode_OverlayEnum constant QPainter::CompositionMode_Overlay
[static,const]QPainter_CompositionModeCompositionMode_PlusEnum constant QPainter::CompositionMode_Plus
[static,const]QPainter_CompositionModeCompositionMode_ScreenEnum constant QPainter::CompositionMode_Screen
[static,const]QPainter_CompositionModeCompositionMode_SoftLightEnum constant QPainter::CompositionMode_SoftLight
[static,const]QPainter_CompositionModeCompositionMode_SourceEnum constant QPainter::CompositionMode_Source
[static,const]QPainter_CompositionModeCompositionMode_SourceAtopEnum constant QPainter::CompositionMode_SourceAtop
[static,const]QPainter_CompositionModeCompositionMode_SourceInEnum constant QPainter::CompositionMode_SourceIn
[static,const]QPainter_CompositionModeCompositionMode_SourceOutEnum constant QPainter::CompositionMode_SourceOut
[static,const]QPainter_CompositionModeCompositionMode_SourceOverEnum constant QPainter::CompositionMode_SourceOver
[static,const]QPainter_CompositionModeCompositionMode_XorEnum constant QPainter::CompositionMode_Xor
[static,const]QPainter_RenderHintHighQualityAntialiasingEnum constant QPainter::HighQualityAntialiasing
[static,const]QPainter_RenderHintNonCosmeticDefaultPenEnum constant QPainter::NonCosmeticDefaultPen
[static,const]QPainter_PixmapFragmentHintOpaqueHintEnum constant QPainter::OpaqueHint
[static,const]QPainter_RenderHintQt4CompatiblePaintingEnum constant QPainter::Qt4CompatiblePainting
[static,const]QPainter_CompositionModeRasterOp_ClearDestinationEnum constant QPainter::RasterOp_ClearDestination
[static,const]QPainter_CompositionModeRasterOp_NotDestinationEnum constant QPainter::RasterOp_NotDestination
[static,const]QPainter_CompositionModeRasterOp_NotSourceEnum constant QPainter::RasterOp_NotSource
[static,const]QPainter_CompositionModeRasterOp_NotSourceAndDestinationEnum constant QPainter::RasterOp_NotSourceAndDestination
[static,const]QPainter_CompositionModeRasterOp_NotSourceAndNotDestinationEnum constant QPainter::RasterOp_NotSourceAndNotDestination
[static,const]QPainter_CompositionModeRasterOp_NotSourceOrDestinationEnum constant QPainter::RasterOp_NotSourceOrDestination
[static,const]QPainter_CompositionModeRasterOp_NotSourceOrNotDestinationEnum constant QPainter::RasterOp_NotSourceOrNotDestination
[static,const]QPainter_CompositionModeRasterOp_NotSourceXorDestinationEnum constant QPainter::RasterOp_NotSourceXorDestination
[static,const]QPainter_CompositionModeRasterOp_SetDestinationEnum constant QPainter::RasterOp_SetDestination
[static,const]QPainter_CompositionModeRasterOp_SourceAndDestinationEnum constant QPainter::RasterOp_SourceAndDestination
[static,const]QPainter_CompositionModeRasterOp_SourceAndNotDestinationEnum constant QPainter::RasterOp_SourceAndNotDestination
[static,const]QPainter_CompositionModeRasterOp_SourceOrDestinationEnum constant QPainter::RasterOp_SourceOrDestination
[static,const]QPainter_CompositionModeRasterOp_SourceOrNotDestinationEnum constant QPainter::RasterOp_SourceOrNotDestination
[static,const]QPainter_CompositionModeRasterOp_SourceXorDestinationEnum constant QPainter::RasterOp_SourceXorDestination
[static,const]QPainter_RenderHintSmoothPixmapTransformEnum constant QPainter::SmoothPixmapTransform
[static,const]QPainter_RenderHintTextAntialiasingEnum constant QPainter::TextAntialiasing
QPaintDevice ptrredirected(const QPaintDevice ptr device,
QPoint ptr offset = nullptr)
Static method QPaintDevice *QPainter::redirected(const QPaintDevice *device, QPoint *offset)
voidrestoreRedirected(const QPaintDevice ptr device)Static method void QPainter::restoreRedirected(const QPaintDevice *device)
voidsetRedirected(const QPaintDevice ptr device,
QPaintDevice ptr replacement,
const QPoint offset = QPoint())
Static method void QPainter::setRedirected(const QPaintDevice *device, QPaintDevice *replacement, const QPoint &offset)

Deprecated methods (protected, public, static, non-static and constructors)

voidcreateUse of this method is deprecated. Use _create instead
voiddestroyUse of this method is deprecated. Use _destroy instead
[const]booldestroyed?Use of this method is deprecated. Use _destroyed? instead
[const]boolis_const_object?Use of this method is deprecated. Use _is_const_object? instead

Detailed description

Antialiasing

Signature: [static,const] QPainter_RenderHint Antialiasing

Description: Enum constant QPainter::Antialiasing

Python specific notes:
The object exposes a readable attribute 'Antialiasing'. This is the getter.

CompositionMode_Clear

Signature: [static,const] QPainter_CompositionMode CompositionMode_Clear

Description: Enum constant QPainter::CompositionMode_Clear

Python specific notes:
The object exposes a readable attribute 'CompositionMode_Clear'. This is the getter.

CompositionMode_ColorBurn

Signature: [static,const] QPainter_CompositionMode CompositionMode_ColorBurn

Description: Enum constant QPainter::CompositionMode_ColorBurn

Python specific notes:
The object exposes a readable attribute 'CompositionMode_ColorBurn'. This is the getter.

CompositionMode_ColorDodge

Signature: [static,const] QPainter_CompositionMode CompositionMode_ColorDodge

Description: Enum constant QPainter::CompositionMode_ColorDodge

Python specific notes:
The object exposes a readable attribute 'CompositionMode_ColorDodge'. This is the getter.

CompositionMode_Darken

Signature: [static,const] QPainter_CompositionMode CompositionMode_Darken

Description: Enum constant QPainter::CompositionMode_Darken

Python specific notes:
The object exposes a readable attribute 'CompositionMode_Darken'. This is the getter.

CompositionMode_Destination

Signature: [static,const] QPainter_CompositionMode CompositionMode_Destination

Description: Enum constant QPainter::CompositionMode_Destination

Python specific notes:
The object exposes a readable attribute 'CompositionMode_Destination'. This is the getter.

CompositionMode_DestinationAtop

Signature: [static,const] QPainter_CompositionMode CompositionMode_DestinationAtop

Description: Enum constant QPainter::CompositionMode_DestinationAtop

Python specific notes:
The object exposes a readable attribute 'CompositionMode_DestinationAtop'. This is the getter.

CompositionMode_DestinationIn

Signature: [static,const] QPainter_CompositionMode CompositionMode_DestinationIn

Description: Enum constant QPainter::CompositionMode_DestinationIn

Python specific notes:
The object exposes a readable attribute 'CompositionMode_DestinationIn'. This is the getter.

CompositionMode_DestinationOut

Signature: [static,const] QPainter_CompositionMode CompositionMode_DestinationOut

Description: Enum constant QPainter::CompositionMode_DestinationOut

Python specific notes:
The object exposes a readable attribute 'CompositionMode_DestinationOut'. This is the getter.

CompositionMode_DestinationOver

Signature: [static,const] QPainter_CompositionMode CompositionMode_DestinationOver

Description: Enum constant QPainter::CompositionMode_DestinationOver

Python specific notes:
The object exposes a readable attribute 'CompositionMode_DestinationOver'. This is the getter.

CompositionMode_Difference

Signature: [static,const] QPainter_CompositionMode CompositionMode_Difference

Description: Enum constant QPainter::CompositionMode_Difference

Python specific notes:
The object exposes a readable attribute 'CompositionMode_Difference'. This is the getter.

CompositionMode_Exclusion

Signature: [static,const] QPainter_CompositionMode CompositionMode_Exclusion

Description: Enum constant QPainter::CompositionMode_Exclusion

Python specific notes:
The object exposes a readable attribute 'CompositionMode_Exclusion'. This is the getter.

CompositionMode_HardLight

Signature: [static,const] QPainter_CompositionMode CompositionMode_HardLight

Description: Enum constant QPainter::CompositionMode_HardLight

Python specific notes:
The object exposes a readable attribute 'CompositionMode_HardLight'. This is the getter.

CompositionMode_Lighten

Signature: [static,const] QPainter_CompositionMode CompositionMode_Lighten

Description: Enum constant QPainter::CompositionMode_Lighten

Python specific notes:
The object exposes a readable attribute 'CompositionMode_Lighten'. This is the getter.

CompositionMode_Multiply

Signature: [static,const] QPainter_CompositionMode CompositionMode_Multiply

Description: Enum constant QPainter::CompositionMode_Multiply

Python specific notes:
The object exposes a readable attribute 'CompositionMode_Multiply'. This is the getter.

CompositionMode_Overlay

Signature: [static,const] QPainter_CompositionMode CompositionMode_Overlay

Description: Enum constant QPainter::CompositionMode_Overlay

Python specific notes:
The object exposes a readable attribute 'CompositionMode_Overlay'. This is the getter.

CompositionMode_Plus

Signature: [static,const] QPainter_CompositionMode CompositionMode_Plus

Description: Enum constant QPainter::CompositionMode_Plus

Python specific notes:
The object exposes a readable attribute 'CompositionMode_Plus'. This is the getter.

CompositionMode_Screen

Signature: [static,const] QPainter_CompositionMode CompositionMode_Screen

Description: Enum constant QPainter::CompositionMode_Screen

Python specific notes:
The object exposes a readable attribute 'CompositionMode_Screen'. This is the getter.

CompositionMode_SoftLight

Signature: [static,const] QPainter_CompositionMode CompositionMode_SoftLight

Description: Enum constant QPainter::CompositionMode_SoftLight

Python specific notes:
The object exposes a readable attribute 'CompositionMode_SoftLight'. This is the getter.

CompositionMode_Source

Signature: [static,const] QPainter_CompositionMode CompositionMode_Source

Description: Enum constant QPainter::CompositionMode_Source

Python specific notes:
The object exposes a readable attribute 'CompositionMode_Source'. This is the getter.

CompositionMode_SourceAtop

Signature: [static,const] QPainter_CompositionMode CompositionMode_SourceAtop

Description: Enum constant QPainter::CompositionMode_SourceAtop

Python specific notes:
The object exposes a readable attribute 'CompositionMode_SourceAtop'. This is the getter.

CompositionMode_SourceIn

Signature: [static,const] QPainter_CompositionMode CompositionMode_SourceIn

Description: Enum constant QPainter::CompositionMode_SourceIn

Python specific notes:
The object exposes a readable attribute 'CompositionMode_SourceIn'. This is the getter.

CompositionMode_SourceOut

Signature: [static,const] QPainter_CompositionMode CompositionMode_SourceOut

Description: Enum constant QPainter::CompositionMode_SourceOut

Python specific notes:
The object exposes a readable attribute 'CompositionMode_SourceOut'. This is the getter.

CompositionMode_SourceOver

Signature: [static,const] QPainter_CompositionMode CompositionMode_SourceOver

Description: Enum constant QPainter::CompositionMode_SourceOver

Python specific notes:
The object exposes a readable attribute 'CompositionMode_SourceOver'. This is the getter.

CompositionMode_Xor

Signature: [static,const] QPainter_CompositionMode CompositionMode_Xor

Description: Enum constant QPainter::CompositionMode_Xor

Python specific notes:
The object exposes a readable attribute 'CompositionMode_Xor'. This is the getter.

HighQualityAntialiasing

Signature: [static,const] QPainter_RenderHint HighQualityAntialiasing

Description: Enum constant QPainter::HighQualityAntialiasing

Python specific notes:
The object exposes a readable attribute 'HighQualityAntialiasing'. This is the getter.

NonCosmeticDefaultPen

Signature: [static,const] QPainter_RenderHint NonCosmeticDefaultPen

Description: Enum constant QPainter::NonCosmeticDefaultPen

Python specific notes:
The object exposes a readable attribute 'NonCosmeticDefaultPen'. This is the getter.

OpaqueHint

Signature: [static,const] QPainter_PixmapFragmentHint OpaqueHint

Description: Enum constant QPainter::OpaqueHint

Python specific notes:
The object exposes a readable attribute 'OpaqueHint'. This is the getter.

Qt4CompatiblePainting

Signature: [static,const] QPainter_RenderHint Qt4CompatiblePainting

Description: Enum constant QPainter::Qt4CompatiblePainting

Python specific notes:
The object exposes a readable attribute 'Qt4CompatiblePainting'. This is the getter.

RasterOp_ClearDestination

Signature: [static,const] QPainter_CompositionMode RasterOp_ClearDestination

Description: Enum constant QPainter::RasterOp_ClearDestination

Python specific notes:
The object exposes a readable attribute 'RasterOp_ClearDestination'. This is the getter.

RasterOp_NotDestination

Signature: [static,const] QPainter_CompositionMode RasterOp_NotDestination

Description: Enum constant QPainter::RasterOp_NotDestination

Python specific notes:
The object exposes a readable attribute 'RasterOp_NotDestination'. This is the getter.

RasterOp_NotSource

Signature: [static,const] QPainter_CompositionMode RasterOp_NotSource

Description: Enum constant QPainter::RasterOp_NotSource

Python specific notes:
The object exposes a readable attribute 'RasterOp_NotSource'. This is the getter.

RasterOp_NotSourceAndDestination

Signature: [static,const] QPainter_CompositionMode RasterOp_NotSourceAndDestination

Description: Enum constant QPainter::RasterOp_NotSourceAndDestination

Python specific notes:
The object exposes a readable attribute 'RasterOp_NotSourceAndDestination'. This is the getter.

RasterOp_NotSourceAndNotDestination

Signature: [static,const] QPainter_CompositionMode RasterOp_NotSourceAndNotDestination

Description: Enum constant QPainter::RasterOp_NotSourceAndNotDestination

Python specific notes:
The object exposes a readable attribute 'RasterOp_NotSourceAndNotDestination'. This is the getter.

RasterOp_NotSourceOrDestination

Signature: [static,const] QPainter_CompositionMode RasterOp_NotSourceOrDestination

Description: Enum constant QPainter::RasterOp_NotSourceOrDestination

Python specific notes:
The object exposes a readable attribute 'RasterOp_NotSourceOrDestination'. This is the getter.

RasterOp_NotSourceOrNotDestination

Signature: [static,const] QPainter_CompositionMode RasterOp_NotSourceOrNotDestination

Description: Enum constant QPainter::RasterOp_NotSourceOrNotDestination

Python specific notes:
The object exposes a readable attribute 'RasterOp_NotSourceOrNotDestination'. This is the getter.

RasterOp_NotSourceXorDestination

Signature: [static,const] QPainter_CompositionMode RasterOp_NotSourceXorDestination

Description: Enum constant QPainter::RasterOp_NotSourceXorDestination

Python specific notes:
The object exposes a readable attribute 'RasterOp_NotSourceXorDestination'. This is the getter.

RasterOp_SetDestination

Signature: [static,const] QPainter_CompositionMode RasterOp_SetDestination

Description: Enum constant QPainter::RasterOp_SetDestination

Python specific notes:
The object exposes a readable attribute 'RasterOp_SetDestination'. This is the getter.

RasterOp_SourceAndDestination

Signature: [static,const] QPainter_CompositionMode RasterOp_SourceAndDestination

Description: Enum constant QPainter::RasterOp_SourceAndDestination

Python specific notes:
The object exposes a readable attribute 'RasterOp_SourceAndDestination'. This is the getter.

RasterOp_SourceAndNotDestination

Signature: [static,const] QPainter_CompositionMode RasterOp_SourceAndNotDestination

Description: Enum constant QPainter::RasterOp_SourceAndNotDestination

Python specific notes:
The object exposes a readable attribute 'RasterOp_SourceAndNotDestination'. This is the getter.

RasterOp_SourceOrDestination

Signature: [static,const] QPainter_CompositionMode RasterOp_SourceOrDestination

Description: Enum constant QPainter::RasterOp_SourceOrDestination

Python specific notes:
The object exposes a readable attribute 'RasterOp_SourceOrDestination'. This is the getter.

RasterOp_SourceOrNotDestination

Signature: [static,const] QPainter_CompositionMode RasterOp_SourceOrNotDestination

Description: Enum constant QPainter::RasterOp_SourceOrNotDestination

Python specific notes:
The object exposes a readable attribute 'RasterOp_SourceOrNotDestination'. This is the getter.

RasterOp_SourceXorDestination

Signature: [static,const] QPainter_CompositionMode RasterOp_SourceXorDestination

Description: Enum constant QPainter::RasterOp_SourceXorDestination

Python specific notes:
The object exposes a readable attribute 'RasterOp_SourceXorDestination'. This is the getter.

SmoothPixmapTransform

Signature: [static,const] QPainter_RenderHint SmoothPixmapTransform

Description: Enum constant QPainter::SmoothPixmapTransform

Python specific notes:
The object exposes a readable attribute 'SmoothPixmapTransform'. This is the getter.

TextAntialiasing

Signature: [static,const] QPainter_RenderHint TextAntialiasing

Description: Enum constant QPainter::TextAntialiasing

Python specific notes:
The object exposes a readable attribute 'TextAntialiasing'. This is the getter.

_const_cast

Signature: [const] QPainter ptr _const_cast

Description: Returns a non-const reference to self.

Basically, this method allows turning a const object reference to a non-const one. This method is provided as last resort to remove the constness from an object. Usually there is a good reason for a const object reference, so using this method may have undesired side effects.

This method has been introduced in version 0.29.6.

_create

Signature: void _create

Description: Ensures the C++ object is created

Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created.

_destroy

Signature: void _destroy

Description: Explicitly destroys the object

Explicitly destroys the object on C++ side if it was owned by the script interpreter. Subsequent access to this object will throw an exception. If the object is not owned by the script, this method will do nothing.

_destroyed?

Signature: [const] bool _destroyed?

Description: Returns a value indicating whether the object was already destroyed

This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself.

_is_const_object?

Signature: [const] bool _is_const_object?

Description: Returns a value indicating whether the reference is a const reference

This method returns true, if self is a const reference. In that case, only const methods may be called on self.

_manage

Signature: void _manage

Description: Marks the object as managed by the script side.

After calling this method on an object, the script side will be responsible for the management of the object. This method may be called if an object is returned from a C++ function and the object is known not to be owned by any C++ instance. If necessary, the script side may delete the object if the script's reference is no longer required.

Usually it's not required to call this method. It has been introduced in version 0.24.

_unmanage

Signature: void _unmanage

Description: Marks the object as no longer owned by the script side.

Calling this method will make this object no longer owned by the script's memory management. Instead, the object must be managed in some other way. Usually this method may be called if it is known that some C++ object holds and manages this object. Technically speaking, this method will turn the script's reference into a weak reference. After the script engine decides to delete the reference, the object itself will still exist. If the object is not managed otherwise, memory leaks will occur.

Usually it's not required to call this method. It has been introduced in version 0.24.

background

Signature: [const] QBrush background

Description: Method const QBrush &QPainter::background()

Python specific notes:
The object exposes a readable attribute 'background'. This is the getter.

background=

Signature: void background= (const QBrush bg)

Description: Method void QPainter::setBackground(const QBrush &bg)

Python specific notes:
The object exposes a writable attribute 'background'. This is the setter.

backgroundMode

Signature: [const] Qt_BGMode backgroundMode

Description: Method Qt::BGMode QPainter::backgroundMode()

Python specific notes:
The object exposes a readable attribute 'backgroundMode'. This is the getter.

backgroundMode=

Signature: void backgroundMode= (const Qt_BGMode mode)

Description: Method void QPainter::setBackgroundMode(Qt::BGMode mode)

Python specific notes:
The object exposes a writable attribute 'backgroundMode'. This is the setter.

begin

Signature: bool begin (QPaintDevice ptr arg1)

Description: Method bool QPainter::begin(QPaintDevice *)

beginNativePainting

Signature: void beginNativePainting

Description: Method void QPainter::beginNativePainting()

boundingRect

(1) Signature: QRectF boundingRect (const QRectF rect, int flags, string text)

Description: Method QRectF QPainter::boundingRect(const QRectF &rect, int flags, const QString &text)

(2) Signature: QRect boundingRect (const QRect rect, int flags, string text)

Description: Method QRect QPainter::boundingRect(const QRect &rect, int flags, const QString &text)

(3) Signature: QRect boundingRect (int x, int y, int w, int h, int flags, string text)

Description: Method QRect QPainter::boundingRect(int x, int y, int w, int h, int flags, const QString &text)

(4) Signature: QRectF boundingRect (const QRectF rect, string text, const QTextOption o = QTextOption())

Description: Method QRectF QPainter::boundingRect(const QRectF &rect, const QString &text, const QTextOption &o)

brush

Signature: [const] QBrush brush

Description: Method const QBrush &QPainter::brush()

Python specific notes:
The object exposes a readable attribute 'brush'. This is the getter.

brush=

(1) Signature: void brush= (const QBrush brush)

Description: Method void QPainter::setBrush(const QBrush &brush)

Python specific notes:
The object exposes a writable attribute 'brush'. This is the setter.

(2) Signature: void brush= (const Qt_BrushStyle style)

Description: Method void QPainter::setBrush(Qt::BrushStyle style)

Python specific notes:
The object exposes a writable attribute 'brush'. This is the setter.

brushOrigin

Signature: [const] QPoint brushOrigin

Description: Method QPoint QPainter::brushOrigin()

Python specific notes:
The object exposes a readable attribute 'brushOrigin'. This is the getter.

brushOrigin=

(1) Signature: void brushOrigin= (const QPoint arg1)

Description: Method void QPainter::setBrushOrigin(const QPoint &)

Python specific notes:
The object exposes a writable attribute 'brushOrigin'. This is the setter.

(2) Signature: void brushOrigin= (const QPointF arg1)

Description: Method void QPainter::setBrushOrigin(const QPointF &)

Python specific notes:
The object exposes a writable attribute 'brushOrigin'. This is the setter.

clipBoundingRect

Signature: [const] QRectF clipBoundingRect

Description: Method QRectF QPainter::clipBoundingRect()

clipPath

Signature: [const] QPainterPath clipPath

Description: Method QPainterPath QPainter::clipPath()

Python specific notes:
The object exposes a readable attribute 'clipPath'. This is the getter.

clipRegion

Signature: [const] QRegion clipRegion

Description: Method QRegion QPainter::clipRegion()

Python specific notes:
The object exposes a readable attribute 'clipRegion'. This is the getter.

clipping

Signature: [const] bool clipping

Description: Method bool QPainter::hasClipping()

Python specific notes:
The object exposes a readable attribute 'clipping'. This is the getter.

clipping=

Signature: void clipping= (bool enable)

Description: Method void QPainter::setClipping(bool enable)

Python specific notes:
The object exposes a writable attribute 'clipping'. This is the setter.

combinedMatrix

Signature: [const] QMatrix combinedMatrix

Description: Method QMatrix QPainter::combinedMatrix()

combinedTransform

Signature: [const] QTransform combinedTransform

Description: Method QTransform QPainter::combinedTransform()

compositionMode

Signature: [const] QPainter_CompositionMode compositionMode

Description: Method QPainter::CompositionMode QPainter::compositionMode()

Python specific notes:
The object exposes a readable attribute 'compositionMode'. This is the getter.

compositionMode=

Signature: void compositionMode= (const QPainter_CompositionMode mode)

Description: Method void QPainter::setCompositionMode(QPainter::CompositionMode mode)

Python specific notes:
The object exposes a writable attribute 'compositionMode'. This is the setter.

create

Signature: void create

Description: Ensures the C++ object is created

Use of this method is deprecated. Use _create instead

Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created.

destroy

Signature: void destroy

Description: Explicitly destroys the object

Use of this method is deprecated. Use _destroy instead

Explicitly destroys the object on C++ side if it was owned by the script interpreter. Subsequent access to this object will throw an exception. If the object is not owned by the script, this method will do nothing.

destroyed?

Signature: [const] bool destroyed?

Description: Returns a value indicating whether the object was already destroyed

Use of this method is deprecated. Use _destroyed? instead

This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself.

device

Signature: [const] QPaintDevice ptr device

Description: Method QPaintDevice *QPainter::device()

deviceMatrix

Signature: [const] QMatrix deviceMatrix

Description: Method const QMatrix &QPainter::deviceMatrix()

deviceTransform

Signature: [const] QTransform deviceTransform

Description: Method const QTransform &QPainter::deviceTransform()

drawArc

(1) Signature: void drawArc (const QRectF rect, int a, int alen)

Description: Method void QPainter::drawArc(const QRectF &rect, int a, int alen)

(2) Signature: void drawArc (const QRect arg1, int a, int alen)

Description: Method void QPainter::drawArc(const QRect &, int a, int alen)

(3) Signature: void drawArc (int x, int y, int w, int h, int a, int alen)

Description: Method void QPainter::drawArc(int x, int y, int w, int h, int a, int alen)

drawChord

(1) Signature: void drawChord (const QRectF rect, int a, int alen)

Description: Method void QPainter::drawChord(const QRectF &rect, int a, int alen)

(2) Signature: void drawChord (int x, int y, int w, int h, int a, int alen)

Description: Method void QPainter::drawChord(int x, int y, int w, int h, int a, int alen)

(3) Signature: void drawChord (const QRect arg1, int a, int alen)

Description: Method void QPainter::drawChord(const QRect &, int a, int alen)

drawConvexPolygon

(1) Signature: void drawConvexPolygon (const QPolygonF polygon)

Description: Method void QPainter::drawConvexPolygon(const QPolygonF &polygon)

(2) Signature: void drawConvexPolygon (const QPolygon polygon)

Description: Method void QPainter::drawConvexPolygon(const QPolygon &polygon)

drawEllipse

(1) Signature: void drawEllipse (const QRectF r)

Description: Method void QPainter::drawEllipse(const QRectF &r)

(2) Signature: void drawEllipse (const QRect r)

Description: Method void QPainter::drawEllipse(const QRect &r)

(3) Signature: void drawEllipse (int x, int y, int w, int h)

Description: Method void QPainter::drawEllipse(int x, int y, int w, int h)

(4) Signature: void drawEllipse (const QPointF center, double rx, double ry)

Description: Method void QPainter::drawEllipse(const QPointF &center, double rx, double ry)

(5) Signature: void drawEllipse (const QPoint center, int rx, int ry)

Description: Method void QPainter::drawEllipse(const QPoint &center, int rx, int ry)

drawGlyphRun

Signature: void drawGlyphRun (const QPointF position, const QGlyphRun glyphRun)

Description: Method void QPainter::drawGlyphRun(const QPointF &position, const QGlyphRun &glyphRun)

drawImage

(1) Signature: void drawImage (const QRectF targetRect, const QImage image, const QRectF sourceRect, Qt_QFlags_ImageConversionFlag flags = Qt::AutoColor)

Description: Method void QPainter::drawImage(const QRectF &targetRect, const QImage &image, const QRectF &sourceRect, QFlags<Qt::ImageConversionFlag> flags)

(2) Signature: void drawImage (const QRect targetRect, const QImage image, const QRect sourceRect, Qt_QFlags_ImageConversionFlag flags = Qt::AutoColor)

Description: Method void QPainter::drawImage(const QRect &targetRect, const QImage &image, const QRect &sourceRect, QFlags<Qt::ImageConversionFlag> flags)

(3) Signature: void drawImage (const QPointF p, const QImage image, const QRectF sr, Qt_QFlags_ImageConversionFlag flags = Qt::AutoColor)

Description: Method void QPainter::drawImage(const QPointF &p, const QImage &image, const QRectF &sr, QFlags<Qt::ImageConversionFlag> flags)

(4) Signature: void drawImage (const QPoint p, const QImage image, const QRect sr, Qt_QFlags_ImageConversionFlag flags = Qt::AutoColor)

Description: Method void QPainter::drawImage(const QPoint &p, const QImage &image, const QRect &sr, QFlags<Qt::ImageConversionFlag> flags)

(5) Signature: void drawImage (const QRectF r, const QImage image)

Description: Method void QPainter::drawImage(const QRectF &r, const QImage &image)

(6) Signature: void drawImage (const QRect r, const QImage image)

Description: Method void QPainter::drawImage(const QRect &r, const QImage &image)

(7) Signature: void drawImage (const QPointF p, const QImage image)

Description: Method void QPainter::drawImage(const QPointF &p, const QImage &image)

(8) Signature: void drawImage (const QPoint p, const QImage image)

Description: Method void QPainter::drawImage(const QPoint &p, const QImage &image)

(9) Signature: void drawImage (int x, int y, const QImage image, int sx = 0, int sy = 0, int sw = -1, int sh = -1, Qt_QFlags_ImageConversionFlag flags = Qt::AutoColor)

Description: Method void QPainter::drawImage(int x, int y, const QImage &image, int sx, int sy, int sw, int sh, QFlags<Qt::ImageConversionFlag> flags)

drawLine

(1) Signature: void drawLine (const QLineF line)

Description: Method void QPainter::drawLine(const QLineF &line)

(2) Signature: void drawLine (const QLine line)

Description: Method void QPainter::drawLine(const QLine &line)

(3) Signature: void drawLine (int x1, int y1, int x2, int y2)

Description: Method void QPainter::drawLine(int x1, int y1, int x2, int y2)

(4) Signature: void drawLine (const QPoint p1, const QPoint p2)

Description: Method void QPainter::drawLine(const QPoint &p1, const QPoint &p2)

(5) Signature: void drawLine (const QPointF p1, const QPointF p2)

Description: Method void QPainter::drawLine(const QPointF &p1, const QPointF &p2)

drawLines_f

Signature: void drawLines_f (QLineF[] lines)

Description: Method void QPainter::drawLines(const QVector<QLineF> &lines)

drawLines_fp

Signature: void drawLines_fp (QPointF[] pointPairs)

Description: Method void QPainter::drawLines(const QVector<QPointF> &pointPairs)

drawLines_i

Signature: void drawLines_i (QLine[] lines)

Description: Method void QPainter::drawLines(const QVector<QLine> &lines)

drawLines_ip

Signature: void drawLines_ip (QPoint[] pointPairs)

Description: Method void QPainter::drawLines(const QVector<QPoint> &pointPairs)

drawPath

Signature: void drawPath (const QPainterPath path)

Description: Method void QPainter::drawPath(const QPainterPath &path)

drawPicture

(1) Signature: void drawPicture (const QPointF p, const QPicture picture)

Description: Method void QPainter::drawPicture(const QPointF &p, const QPicture &picture)

(2) Signature: void drawPicture (int x, int y, const QPicture picture)

Description: Method void QPainter::drawPicture(int x, int y, const QPicture &picture)

(3) Signature: void drawPicture (const QPoint p, const QPicture picture)

Description: Method void QPainter::drawPicture(const QPoint &p, const QPicture &picture)

drawPie

(1) Signature: void drawPie (const QRectF rect, int a, int alen)

Description: Method void QPainter::drawPie(const QRectF &rect, int a, int alen)

(2) Signature: void drawPie (int x, int y, int w, int h, int a, int alen)

Description: Method void QPainter::drawPie(int x, int y, int w, int h, int a, int alen)

(3) Signature: void drawPie (const QRect arg1, int a, int alen)

Description: Method void QPainter::drawPie(const QRect &, int a, int alen)

drawPixmap

(1) Signature: void drawPixmap (const QRectF targetRect, const QPixmap pixmap, const QRectF sourceRect)

Description: Method void QPainter::drawPixmap(const QRectF &targetRect, const QPixmap &pixmap, const QRectF &sourceRect)

(2) Signature: void drawPixmap (const QRect targetRect, const QPixmap pixmap, const QRect sourceRect)

Description: Method void QPainter::drawPixmap(const QRect &targetRect, const QPixmap &pixmap, const QRect &sourceRect)

(3) Signature: void drawPixmap (int x, int y, int w, int h, const QPixmap pm, int sx, int sy, int sw, int sh)

Description: Method void QPainter::drawPixmap(int x, int y, int w, int h, const QPixmap &pm, int sx, int sy, int sw, int sh)

(4) Signature: void drawPixmap (int x, int y, const QPixmap pm, int sx, int sy, int sw, int sh)

Description: Method void QPainter::drawPixmap(int x, int y, const QPixmap &pm, int sx, int sy, int sw, int sh)

(5) Signature: void drawPixmap (const QPointF p, const QPixmap pm, const QRectF sr)

Description: Method void QPainter::drawPixmap(const QPointF &p, const QPixmap &pm, const QRectF &sr)

(6) Signature: void drawPixmap (const QPoint p, const QPixmap pm, const QRect sr)

Description: Method void QPainter::drawPixmap(const QPoint &p, const QPixmap &pm, const QRect &sr)

(7) Signature: void drawPixmap (const QPointF p, const QPixmap pm)

Description: Method void QPainter::drawPixmap(const QPointF &p, const QPixmap &pm)

(8) Signature: void drawPixmap (const QPoint p, const QPixmap pm)

Description: Method void QPainter::drawPixmap(const QPoint &p, const QPixmap &pm)

(9) Signature: void drawPixmap (int x, int y, const QPixmap pm)

Description: Method void QPainter::drawPixmap(int x, int y, const QPixmap &pm)

(10) Signature: void drawPixmap (const QRect r, const QPixmap pm)

Description: Method void QPainter::drawPixmap(const QRect &r, const QPixmap &pm)

(11) Signature: void drawPixmap (int x, int y, int w, int h, const QPixmap pm)

Description: Method void QPainter::drawPixmap(int x, int y, int w, int h, const QPixmap &pm)

drawPixmapFragments

Signature: void drawPixmapFragments (const QPainter_PixmapFragment ptr fragments, int fragmentCount, const QPixmap pixmap, QPainter_QFlags_PixmapFragmentHint hints = QPainter::PixmapFragmentHints())

Description: Method void QPainter::drawPixmapFragments(const QPainter::PixmapFragment *fragments, int fragmentCount, const QPixmap &pixmap, QFlags<QPainter::PixmapFragmentHint> hints)

drawPoint

(1) Signature: void drawPoint (const QPointF pt)

Description: Method void QPainter::drawPoint(const QPointF &pt)

(2) Signature: void drawPoint (const QPoint p)

Description: Method void QPainter::drawPoint(const QPoint &p)

(3) Signature: void drawPoint (int x, int y)

Description: Method void QPainter::drawPoint(int x, int y)

drawPoints

(1) Signature: void drawPoints (const QPolygonF points)

Description: Method void QPainter::drawPoints(const QPolygonF &points)

(2) Signature: void drawPoints (const QPolygon points)

Description: Method void QPainter::drawPoints(const QPolygon &points)

drawPolygon

(1) Signature: void drawPolygon (const QPolygonF polygon, const Qt_FillRule fillRule = Qt::OddEvenFill)

Description: Method void QPainter::drawPolygon(const QPolygonF &polygon, Qt::FillRule fillRule)

(2) Signature: void drawPolygon (const QPolygon polygon, const Qt_FillRule fillRule = Qt::OddEvenFill)

Description: Method void QPainter::drawPolygon(const QPolygon &polygon, Qt::FillRule fillRule)

drawPolyline

(1) Signature: void drawPolyline (const QPolygonF polyline)

Description: Method void QPainter::drawPolyline(const QPolygonF &polyline)

(2) Signature: void drawPolyline (const QPolygon polygon)

Description: Method void QPainter::drawPolyline(const QPolygon &polygon)

drawRect

(1) Signature: void drawRect (const QRectF rect)

Description: Method void QPainter::drawRect(const QRectF &rect)

(2) Signature: void drawRect (int x1, int y1, int w, int h)

Description: Method void QPainter::drawRect(int x1, int y1, int w, int h)

(3) Signature: void drawRect (const QRect rect)

Description: Method void QPainter::drawRect(const QRect &rect)

drawRects_f

Signature: void drawRects_f (QRectF[] rectangles)

Description: Method void QPainter::drawRects(const QVector<QRectF> &rectangles)

drawRects_i

Signature: void drawRects_i (QRect[] rectangles)

Description: Method void QPainter::drawRects(const QVector<QRect> &rectangles)

drawRoundRect

(1) Signature: void drawRoundRect (const QRectF r, int xround = 25, int yround = 25)

Description: Method void QPainter::drawRoundRect(const QRectF &r, int xround, int yround)

(2) Signature: void drawRoundRect (int x, int y, int w, int h, int arg5 = 25, int arg6 = 25)

Description: Method void QPainter::drawRoundRect(int x, int y, int w, int h, int, int)

(3) Signature: void drawRoundRect (const QRect r, int xround = 25, int yround = 25)

Description: Method void QPainter::drawRoundRect(const QRect &r, int xround, int yround)

drawRoundedRect

(1) Signature: void drawRoundedRect (const QRectF rect, double xRadius, double yRadius, const Qt_SizeMode mode = Qt::AbsoluteSize)

Description: Method void QPainter::drawRoundedRect(const QRectF &rect, double xRadius, double yRadius, Qt::SizeMode mode)

(2) Signature: void drawRoundedRect (int x, int y, int w, int h, double xRadius, double yRadius, const Qt_SizeMode mode = Qt::AbsoluteSize)

Description: Method void QPainter::drawRoundedRect(int x, int y, int w, int h, double xRadius, double yRadius, Qt::SizeMode mode)

(3) Signature: void drawRoundedRect (const QRect rect, double xRadius, double yRadius, const Qt_SizeMode mode = Qt::AbsoluteSize)

Description: Method void QPainter::drawRoundedRect(const QRect &rect, double xRadius, double yRadius, Qt::SizeMode mode)

drawStaticText

(1) Signature: void drawStaticText (const QPointF topLeftPosition, const QStaticText staticText)

Description: Method void QPainter::drawStaticText(const QPointF &topLeftPosition, const QStaticText &staticText)

(2) Signature: void drawStaticText (const QPoint topLeftPosition, const QStaticText staticText)

Description: Method void QPainter::drawStaticText(const QPoint &topLeftPosition, const QStaticText &staticText)

(3) Signature: void drawStaticText (int left, int top, const QStaticText staticText)

Description: Method void QPainter::drawStaticText(int left, int top, const QStaticText &staticText)

drawText

(1) Signature: void drawText (const QPointF p, string s)

Description: Method void QPainter::drawText(const QPointF &p, const QString &s)

(2) Signature: void drawText (const QPoint p, string s)

Description: Method void QPainter::drawText(const QPoint &p, const QString &s)

(3) Signature: void drawText (int x, int y, string s)

Description: Method void QPainter::drawText(int x, int y, const QString &s)

(4) Signature: void drawText (const QPointF p, string str, int tf, int justificationPadding)

Description: Method void QPainter::drawText(const QPointF &p, const QString &str, int tf, int justificationPadding)

(5) Signature: void drawText (const QRectF r, int flags, string text, QRectF ptr br = nullptr)

Description: Method void QPainter::drawText(const QRectF &r, int flags, const QString &text, QRectF *br)

(6) Signature: void drawText (const QRect r, int flags, string text, QRect ptr br = nullptr)

Description: Method void QPainter::drawText(const QRect &r, int flags, const QString &text, QRect *br)

(7) Signature: void drawText (int x, int y, int w, int h, int flags, string text, QRect ptr br = nullptr)

Description: Method void QPainter::drawText(int x, int y, int w, int h, int flags, const QString &text, QRect *br)

(8) Signature: void drawText (const QRectF r, string text, const QTextOption o = QTextOption())

Description: Method void QPainter::drawText(const QRectF &r, const QString &text, const QTextOption &o)

drawTextItem

(1) Signature: void drawTextItem (const QPointF p, const QTextItem ti)

Description: Method void QPainter::drawTextItem(const QPointF &p, const QTextItem &ti)

(2) Signature: void drawTextItem (int x, int y, const QTextItem ti)

Description: Method void QPainter::drawTextItem(int x, int y, const QTextItem &ti)

(3) Signature: void drawTextItem (const QPoint p, const QTextItem ti)

Description: Method void QPainter::drawTextItem(const QPoint &p, const QTextItem &ti)

drawTiledPixmap

(1) Signature: void drawTiledPixmap (const QRectF rect, const QPixmap pm, const QPointF offset = QPointF())

Description: Method void QPainter::drawTiledPixmap(const QRectF &rect, const QPixmap &pm, const QPointF &offset)

(2) Signature: void drawTiledPixmap (int x, int y, int w, int h, const QPixmap arg5, int sx = 0, int sy = 0)

Description: Method void QPainter::drawTiledPixmap(int x, int y, int w, int h, const QPixmap &, int sx, int sy)

(3) Signature: void drawTiledPixmap (const QRect arg1, const QPixmap arg2, const QPoint arg3 = QPoint())

Description: Method void QPainter::drawTiledPixmap(const QRect &, const QPixmap &, const QPoint &)

end

Signature: bool end

Description: Method bool QPainter::end()

endNativePainting

Signature: void endNativePainting

Description: Method void QPainter::endNativePainting()

eraseRect

(1) Signature: void eraseRect (const QRectF arg1)

Description: Method void QPainter::eraseRect(const QRectF &)

(2) Signature: void eraseRect (int x, int y, int w, int h)

Description: Method void QPainter::eraseRect(int x, int y, int w, int h)

(3) Signature: void eraseRect (const QRect arg1)

Description: Method void QPainter::eraseRect(const QRect &)

fillPath

Signature: void fillPath (const QPainterPath path, const QBrush brush)

Description: Method void QPainter::fillPath(const QPainterPath &path, const QBrush &brush)

fillRect

(1) Signature: void fillRect (const QRectF arg1, const QBrush arg2)

Description: Method void QPainter::fillRect(const QRectF &, const QBrush &)

(2) Signature: void fillRect (int x, int y, int w, int h, const QBrush arg5)

Description: Method void QPainter::fillRect(int x, int y, int w, int h, const QBrush &)

(3) Signature: void fillRect (const QRect arg1, const QBrush arg2)

Description: Method void QPainter::fillRect(const QRect &, const QBrush &)

(4) Signature: void fillRect (const QRectF arg1, const QColor color)

Description: Method void QPainter::fillRect(const QRectF &, const QColor &color)

(5) Signature: void fillRect (int x, int y, int w, int h, const QColor color)

Description: Method void QPainter::fillRect(int x, int y, int w, int h, const QColor &color)

(6) Signature: void fillRect (const QRect arg1, const QColor color)

Description: Method void QPainter::fillRect(const QRect &, const QColor &color)

(7) Signature: void fillRect (int x, int y, int w, int h, const Qt_GlobalColor c)

Description: Method void QPainter::fillRect(int x, int y, int w, int h, Qt::GlobalColor c)

(8) Signature: void fillRect (const QRect r, const Qt_GlobalColor c)

Description: Method void QPainter::fillRect(const QRect &r, Qt::GlobalColor c)

(9) Signature: void fillRect (const QRectF r, const Qt_GlobalColor c)

Description: Method void QPainter::fillRect(const QRectF &r, Qt::GlobalColor c)

(10) Signature: void fillRect (int x, int y, int w, int h, const Qt_BrushStyle style)

Description: Method void QPainter::fillRect(int x, int y, int w, int h, Qt::BrushStyle style)

(11) Signature: void fillRect (const QRect r, const Qt_BrushStyle style)

Description: Method void QPainter::fillRect(const QRect &r, Qt::BrushStyle style)

(12) Signature: void fillRect (const QRectF r, const Qt_BrushStyle style)

Description: Method void QPainter::fillRect(const QRectF &r, Qt::BrushStyle style)

(13) Signature: void fillRect (int x, int y, int w, int h, const QGradient_Preset preset)

Description: Method void QPainter::fillRect(int x, int y, int w, int h, QGradient::Preset preset)

(14) Signature: void fillRect (const QRect r, const QGradient_Preset preset)

Description: Method void QPainter::fillRect(const QRect &r, QGradient::Preset preset)

(15) Signature: void fillRect (const QRectF r, const QGradient_Preset preset)

Description: Method void QPainter::fillRect(const QRectF &r, QGradient::Preset preset)

font

Signature: [const] QFont font

Description: Method const QFont &QPainter::font()

Python specific notes:
The object exposes a readable attribute 'font'. This is the getter.

font=

Signature: void font= (const QFont f)

Description: Method void QPainter::setFont(const QFont &f)

Python specific notes:
The object exposes a writable attribute 'font'. This is the setter.

fontInfo

Signature: [const] QFontInfo fontInfo

Description: Method QFontInfo QPainter::fontInfo()

fontMetrics

Signature: [const] QFontMetrics fontMetrics

Description: Method QFontMetrics QPainter::fontMetrics()

hasClipping

Signature: [const] bool hasClipping

Description: Method bool QPainter::hasClipping()

Python specific notes:
The object exposes a readable attribute 'clipping'. This is the getter.

initFrom

Signature: void initFrom (const QPaintDevice ptr device)

Description: Method void QPainter::initFrom(const QPaintDevice *device)

isActive?

Signature: [const] bool isActive?

Description: Method bool QPainter::isActive()

is_const_object?

Signature: [const] bool is_const_object?

Description: Returns a value indicating whether the reference is a const reference

Use of this method is deprecated. Use _is_const_object? instead

This method returns true, if self is a const reference. In that case, only const methods may be called on self.

layoutDirection

Signature: [const] Qt_LayoutDirection layoutDirection

Description: Method Qt::LayoutDirection QPainter::layoutDirection()

Python specific notes:
The object exposes a readable attribute 'layoutDirection'. This is the getter.

layoutDirection=

Signature: void layoutDirection= (const Qt_LayoutDirection direction)

Description: Method void QPainter::setLayoutDirection(Qt::LayoutDirection direction)

Python specific notes:
The object exposes a writable attribute 'layoutDirection'. This is the setter.

matrix

Signature: [const] QMatrix matrix

Description: Method const QMatrix &QPainter::matrix()

Python specific notes:
The object exposes a readable attribute 'matrix'. This is the getter.

matrixEnabled

Signature: [const] bool matrixEnabled

Description: Method bool QPainter::matrixEnabled()

Python specific notes:
The object exposes a readable attribute 'matrixEnabled'. This is the getter.

matrixEnabled=

Signature: void matrixEnabled= (bool enabled)

Description: Method void QPainter::setMatrixEnabled(bool enabled)

Python specific notes:
The object exposes a writable attribute 'matrixEnabled'. This is the setter.

new

(1) Signature: [static] new QPainter new

Description: Constructor QPainter::QPainter()

This method creates an object of class QPainter.

Python specific notes:
This method is the default initializer of the object.

(2) Signature: [static] new QPainter new (QPaintDevice ptr arg1)

Description: Constructor QPainter::QPainter(QPaintDevice *)

This method creates an object of class QPainter.

Python specific notes:
This method is the default initializer of the object.

opacity

Signature: [const] double opacity

Description: Method double QPainter::opacity()

Python specific notes:
The object exposes a readable attribute 'opacity'. This is the getter.

opacity=

Signature: void opacity= (double opacity)

Description: Method void QPainter::setOpacity(double opacity)

Python specific notes:
The object exposes a writable attribute 'opacity'. This is the setter.

paintEngine

Signature: [const] QPaintEngine ptr paintEngine

Description: Method QPaintEngine *QPainter::paintEngine()

pen

Signature: [const] QPen pen

Description: Method const QPen &QPainter::pen()

redirected

Signature: [static] QPaintDevice ptr redirected (const QPaintDevice ptr device, QPoint ptr offset = nullptr)

Description: Static method QPaintDevice *QPainter::redirected(const QPaintDevice *device, QPoint *offset)

This method is static and can be called without an instance.

renderHints

Signature: [const] QPainter_QFlags_RenderHint renderHints

Description: Method QFlags<QPainter::RenderHint> QPainter::renderHints()

Python specific notes:
The object exposes a readable attribute 'renderHints'. This is the getter.

resetMatrix

Signature: void resetMatrix

Description: Method void QPainter::resetMatrix()

resetTransform

Signature: void resetTransform

Description: Method void QPainter::resetTransform()

restore

Signature: void restore

Description: Method void QPainter::restore()

restoreRedirected

Signature: [static] void restoreRedirected (const QPaintDevice ptr device)

Description: Static method void QPainter::restoreRedirected(const QPaintDevice *device)

This method is static and can be called without an instance.

rotate

Signature: void rotate (double a)

Description: Method void QPainter::rotate(double a)

save

Signature: void save

Description: Method void QPainter::save()

scale

Signature: void scale (double sx, double sy)

Description: Method void QPainter::scale(double sx, double sy)

setBackground

Signature: void setBackground (const QBrush bg)

Description: Method void QPainter::setBackground(const QBrush &bg)

Python specific notes:
The object exposes a writable attribute 'background'. This is the setter.

setBackgroundMode

Signature: void setBackgroundMode (const Qt_BGMode mode)

Description: Method void QPainter::setBackgroundMode(Qt::BGMode mode)

Python specific notes:
The object exposes a writable attribute 'backgroundMode'. This is the setter.

setBrush

(1) Signature: void setBrush (const QBrush brush)

Description: Method void QPainter::setBrush(const QBrush &brush)

Python specific notes:
The object exposes a writable attribute 'brush'. This is the setter.

(2) Signature: void setBrush (const Qt_BrushStyle style)

Description: Method void QPainter::setBrush(Qt::BrushStyle style)

Python specific notes:
The object exposes a writable attribute 'brush'. This is the setter.

setBrushOrigin

(1) Signature: void setBrushOrigin (int x, int y)

Description: Method void QPainter::setBrushOrigin(int x, int y)

(2) Signature: void setBrushOrigin (const QPoint arg1)

Description: Method void QPainter::setBrushOrigin(const QPoint &)

Python specific notes:
The object exposes a writable attribute 'brushOrigin'. This is the setter.

(3) Signature: void setBrushOrigin (const QPointF arg1)

Description: Method void QPainter::setBrushOrigin(const QPointF &)

Python specific notes:
The object exposes a writable attribute 'brushOrigin'. This is the setter.

setClipPath

Signature: void setClipPath (const QPainterPath path, const Qt_ClipOperation op = Qt::ReplaceClip)

Description: Method void QPainter::setClipPath(const QPainterPath &path, Qt::ClipOperation op)

setClipRect

(1) Signature: void setClipRect (const QRectF arg1, const Qt_ClipOperation op = Qt::ReplaceClip)

Description: Method void QPainter::setClipRect(const QRectF &, Qt::ClipOperation op)

(2) Signature: void setClipRect (const QRect arg1, const Qt_ClipOperation op = Qt::ReplaceClip)

Description: Method void QPainter::setClipRect(const QRect &, Qt::ClipOperation op)

(3) Signature: void setClipRect (int x, int y, int w, int h, const Qt_ClipOperation op = Qt::ReplaceClip)

Description: Method void QPainter::setClipRect(int x, int y, int w, int h, Qt::ClipOperation op)

setClipRegion

Signature: void setClipRegion (const QRegion arg1, const Qt_ClipOperation op = Qt::ReplaceClip)

Description: Method void QPainter::setClipRegion(const QRegion &, Qt::ClipOperation op)

setClipping

Signature: void setClipping (bool enable)

Description: Method void QPainter::setClipping(bool enable)

Python specific notes:
The object exposes a writable attribute 'clipping'. This is the setter.

setCompositionMode

Signature: void setCompositionMode (const QPainter_CompositionMode mode)

Description: Method void QPainter::setCompositionMode(QPainter::CompositionMode mode)

Python specific notes:
The object exposes a writable attribute 'compositionMode'. This is the setter.

setFont

Signature: void setFont (const QFont f)

Description: Method void QPainter::setFont(const QFont &f)

Python specific notes:
The object exposes a writable attribute 'font'. This is the setter.

setLayoutDirection

Signature: void setLayoutDirection (const Qt_LayoutDirection direction)

Description: Method void QPainter::setLayoutDirection(Qt::LayoutDirection direction)

Python specific notes:
The object exposes a writable attribute 'layoutDirection'. This is the setter.

setMatrix

Signature: void setMatrix (const QMatrix matrix, bool combine = false)

Description: Method void QPainter::setMatrix(const QMatrix &matrix, bool combine)

setMatrixEnabled

Signature: void setMatrixEnabled (bool enabled)

Description: Method void QPainter::setMatrixEnabled(bool enabled)

Python specific notes:
The object exposes a writable attribute 'matrixEnabled'. This is the setter.

setOpacity

Signature: void setOpacity (double opacity)

Description: Method void QPainter::setOpacity(double opacity)

Python specific notes:
The object exposes a writable attribute 'opacity'. This is the setter.

setPen

(1) Signature: void setPen (const QColor color)

Description: Method void QPainter::setPen(const QColor &color)

(2) Signature: void setPen (const QPen pen)

Description: Method void QPainter::setPen(const QPen &pen)

(3) Signature: void setPen (const Qt_PenStyle style)

Description: Method void QPainter::setPen(Qt::PenStyle style)

setRedirected

Signature: [static] void setRedirected (const QPaintDevice ptr device, QPaintDevice ptr replacement, const QPoint offset = QPoint())

Description: Static method void QPainter::setRedirected(const QPaintDevice *device, QPaintDevice *replacement, const QPoint &offset)

This method is static and can be called without an instance.

setRenderHint

Signature: void setRenderHint (const QPainter_RenderHint hint, bool on = true)

Description: Method void QPainter::setRenderHint(QPainter::RenderHint hint, bool on)

setRenderHints

Signature: void setRenderHints (QPainter_QFlags_RenderHint hints, bool on = true)

Description: Method void QPainter::setRenderHints(QFlags<QPainter::RenderHint> hints, bool on)

setTransform

Signature: void setTransform (const QTransform transform, bool combine = false)

Description: Method void QPainter::setTransform(const QTransform &transform, bool combine)

setViewTransformEnabled

Signature: void setViewTransformEnabled (bool enable)

Description: Method void QPainter::setViewTransformEnabled(bool enable)

Python specific notes:
The object exposes a writable attribute 'viewTransformEnabled'. This is the setter.

setViewport

(1) Signature: void setViewport (const QRect viewport)

Description: Method void QPainter::setViewport(const QRect &viewport)

Python specific notes:
The object exposes a writable attribute 'viewport'. This is the setter.

(2) Signature: void setViewport (int x, int y, int w, int h)

Description: Method void QPainter::setViewport(int x, int y, int w, int h)

setWindow

(1) Signature: void setWindow (const QRect window)

Description: Method void QPainter::setWindow(const QRect &window)

Python specific notes:
The object exposes a writable attribute 'window'. This is the setter.

(2) Signature: void setWindow (int x, int y, int w, int h)

Description: Method void QPainter::setWindow(int x, int y, int w, int h)

setWorldMatrix

Signature: void setWorldMatrix (const QMatrix matrix, bool combine = false)

Description: Method void QPainter::setWorldMatrix(const QMatrix &matrix, bool combine)

setWorldMatrixEnabled

Signature: void setWorldMatrixEnabled (bool enabled)

Description: Method void QPainter::setWorldMatrixEnabled(bool enabled)

Python specific notes:
The object exposes a writable attribute 'worldMatrixEnabled'. This is the setter.

setWorldTransform

Signature: void setWorldTransform (const QTransform matrix, bool combine = false)

Description: Method void QPainter::setWorldTransform(const QTransform &matrix, bool combine)

shear

Signature: void shear (double sh, double sv)

Description: Method void QPainter::shear(double sh, double sv)

strokePath

Signature: void strokePath (const QPainterPath path, const QPen pen)

Description: Method void QPainter::strokePath(const QPainterPath &path, const QPen &pen)

testRenderHint

Signature: [const] bool testRenderHint (const QPainter_RenderHint hint)

Description: Method bool QPainter::testRenderHint(QPainter::RenderHint hint)

transform

Signature: [const] QTransform transform

Description: Method const QTransform &QPainter::transform()

Python specific notes:
The object exposes a readable attribute 'transform'. This is the getter.

translate

(1) Signature: void translate (const QPointF offset)

Description: Method void QPainter::translate(const QPointF &offset)

(2) Signature: void translate (const QPoint offset)

Description: Method void QPainter::translate(const QPoint &offset)

(3) Signature: void translate (double dx, double dy)

Description: Method void QPainter::translate(double dx, double dy)

viewTransformEnabled

Signature: [const] bool viewTransformEnabled

Description: Method bool QPainter::viewTransformEnabled()

Python specific notes:
The object exposes a readable attribute 'viewTransformEnabled'. This is the getter.

viewTransformEnabled=

Signature: void viewTransformEnabled= (bool enable)

Description: Method void QPainter::setViewTransformEnabled(bool enable)

Python specific notes:
The object exposes a writable attribute 'viewTransformEnabled'. This is the setter.

viewport

Signature: [const] QRect viewport

Description: Method QRect QPainter::viewport()

Python specific notes:
The object exposes a readable attribute 'viewport'. This is the getter.

viewport=

Signature: void viewport= (const QRect viewport)

Description: Method void QPainter::setViewport(const QRect &viewport)

Python specific notes:
The object exposes a writable attribute 'viewport'. This is the setter.

window

Signature: [const] QRect window

Description: Method QRect QPainter::window()

Python specific notes:
The object exposes a readable attribute 'window'. This is the getter.

window=

Signature: void window= (const QRect window)

Description: Method void QPainter::setWindow(const QRect &window)

Python specific notes:
The object exposes a writable attribute 'window'. This is the setter.

worldMatrix

Signature: [const] QMatrix worldMatrix

Description: Method const QMatrix &QPainter::worldMatrix()

Python specific notes:
The object exposes a readable attribute 'worldMatrix'. This is the getter.

worldMatrixEnabled

Signature: [const] bool worldMatrixEnabled

Description: Method bool QPainter::worldMatrixEnabled()

Python specific notes:
The object exposes a readable attribute 'worldMatrixEnabled'. This is the getter.

worldMatrixEnabled=

Signature: void worldMatrixEnabled= (bool enabled)

Description: Method void QPainter::setWorldMatrixEnabled(bool enabled)

Python specific notes:
The object exposes a writable attribute 'worldMatrixEnabled'. This is the setter.

worldTransform

Signature: [const] QTransform worldTransform

Description: Method const QTransform &QPainter::worldTransform()

Python specific notes:
The object exposes a readable attribute 'worldTransform'. This is the getter.