QPainter Class Reference
[QtGui module]
Inherited by QStylePainter.
Types
Methods
- __init__ (self)
- __init__ (self, QPaintDevice)
- QBrush background (self)
- Qt.BGMode backgroundMode (self)
- bool begin (self, QPaintDevice)
- beginNativePainting (self)
- QRectF boundingRect (self, QRectF, int, QString)
- QRect boundingRect (self, QRect, int, QString)
- QRectF boundingRect (self, QRectF, QString, QTextOption option = QTextOption())
- QRect boundingRect (self, int, int, int, int, int, QString)
- QBrush brush (self)
- QPoint brushOrigin (self)
- QPainterPath clipPath (self)
- QRegion clipRegion (self)
- QMatrix combinedMatrix (self)
- QTransform combinedTransform (self)
- CompositionMode compositionMode (self)
- QPaintDevice device (self)
- QMatrix deviceMatrix (self)
- QTransform deviceTransform (self)
- drawArc (self, QRectF, int, int)
- drawArc (self, QRect, int, int)
- drawArc (self, int, int, int, int, int, int)
- drawChord (self, QRectF, int, int)
- drawChord (self, QRect, int, int)
- drawChord (self, int, int, int, int, int, int)
- drawConvexPolygon (self, QPointF point, ...)
- drawConvexPolygon (self, QPolygonF)
- drawConvexPolygon (self, QPoint point, ...)
- drawConvexPolygon (self, QPolygon)
- drawEllipse (self, QRectF)
- drawEllipse (self, QRect)
- drawEllipse (self, int, int, int, int)
- drawEllipse (self, QPointF, float, float)
- drawEllipse (self, QPoint, int, int)
- drawImage (self, QRectF, QImage, QRectF, Qt.ImageConversionFlags flags = Qt.AutoColor)
- drawImage (self, QRect, QImage, QRect, Qt.ImageConversionFlags flags = Qt.AutoColor)
- drawImage (self, QPointF, QImage, QRectF, Qt.ImageConversionFlags flags = Qt.AutoColor)
- drawImage (self, QPoint, QImage, QRect, Qt.ImageConversionFlags flags = Qt.AutoColor)
- drawImage (self, QRectF, QImage)
- drawImage (self, QRect, QImage)
- drawImage (self, QPointF, QImage)
- drawImage (self, QPoint, QImage)
- drawImage (self, int, int, QImage, int sx = 0, int sy = 0, int sw = -1, int sh = -1, Qt.ImageConversionFlags flags = Qt.AutoColor)
- drawLine (self, QLineF)
- drawLine (self, QLine)
- drawLine (self, int, int, int, int)
- drawLine (self, QPoint, QPoint)
- drawLine (self, QPointF, QPointF)
- drawLines (self, QLineF line, ...)
- drawLines (self, list-of-QLineF)
- drawLines (self, QPointF pointPair, ...)
- drawLines (self, list-of-QPointF)
- drawLines (self, QLine line, ...)
- drawLines (self, list-of-QLine)
- drawLines (self, QPoint pointPair, ...)
- drawLines (self, list-of-QPoint)
- drawPath (self, QPainterPath)
- drawPicture (self, QPointF, QPicture)
- drawPicture (self, int, int, QPicture)
- drawPicture (self, QPoint, QPicture)
- drawPie (self, QRectF, int, int)
- drawPie (self, QRect, int, int)
- drawPie (self, int, int, int, int, int, int)
- drawPixmap (self, QRectF, QPixmap, QRectF)
- drawPixmap (self, QRect, QPixmap, QRect)
- drawPixmap (self, QPointF, QPixmap)
- drawPixmap (self, QPoint, QPixmap)
- drawPixmap (self, QRect, QPixmap)
- drawPixmap (self, int, int, QPixmap)
- drawPixmap (self, int, int, int, int, QPixmap)
- drawPixmap (self, int, int, int, int, QPixmap, int, int, int, int)
- drawPixmap (self, int, int, QPixmap, int, int, int, int)
- drawPixmap (self, QPointF, QPixmap, QRectF)
- drawPixmap (self, QPoint, QPixmap, QRect)
- drawPixmapFragments (self, list fragments, QPixmap pixmap, PixmapFragmentHints hints = 0)
- drawPoint (self, QPointF)
- drawPoint (self, int, int)
- drawPoint (self, QPoint)
- drawPoints (self, QPointF point, ...)
- drawPoints (self, QPolygonF)
- drawPoints (self, QPoint point, ...)
- drawPoints (self, QPolygon)
- drawPolygon (self, QPointF point, ...)
- drawPolygon (self, QPolygonF, Qt.FillRule fillRule = Qt.OddEvenFill)
- drawPolygon (self, QPoint point, ...)
- drawPolygon (self, QPolygon, Qt.FillRule fillRule = Qt.OddEvenFill)
- drawPolyline (self, QPointF point, ...)
- drawPolyline (self, QPolygonF)
- drawPolyline (self, QPoint point, ...)
- drawPolyline (self, QPolygon)
- drawRect (self, QRectF)
- drawRect (self, int, int, int, int)
- drawRect (self, QRect)
- drawRects (self, QRectF rect, ...)
- drawRects (self, list-of-QRectF)
- drawRects (self, QRect rect, ...)
- drawRects (self, list-of-QRect)
- drawRoundedRect (self, QRectF, float, float, Qt.SizeMode mode = Qt.AbsoluteSize)
- drawRoundedRect (self, int, int, int, int, float, float, Qt.SizeMode mode = Qt.AbsoluteSize)
- drawRoundedRect (self, QRect, float, float, Qt.SizeMode mode = Qt.AbsoluteSize)
- drawRoundRect (self, QRectF, int xRound = 25, int yRound = 25)
- drawRoundRect (self, int, int, int, int, int xRound = 25, int yRound = 25)
- drawRoundRect (self, QRect, int xRound = 25, int yRound = 25)
- drawStaticText (self, QPointF topLeftPosition, QStaticText staticText)
- drawStaticText (self, QPoint p, QStaticText staticText)
- drawStaticText (self, int x, int y, QStaticText staticText)
- drawText (self, QPointF, QString)
- QRectF boundingRect drawText (self, QRectF, int, QString)
- QRect boundingRect drawText (self, QRect, int, QString)
- drawText (self, QRectF, QString, QTextOption option = QTextOption())
- drawText (self, QPoint, QString)
- QRect boundingRect drawText (self, int, int, int, int, int, QString)
- drawText (self, int, int, QString)
- drawTiledPixmap (self, QRectF, QPixmap, QPointF pos = QPointF())
- drawTiledPixmap (self, QRect, QPixmap, QPoint pos = QPoint())
- drawTiledPixmap (self, int, int, int, int, QPixmap, int sx = 0, int sy = 0)
- bool end (self)
- endNativePainting (self)
- eraseRect (self, QRectF)
- eraseRect (self, QRect)
- eraseRect (self, int, int, int, int)
- fillPath (self, QPainterPath, QBrush)
- fillRect (self, QRectF, QBrush)
- fillRect (self, QRect, QBrush)
- fillRect (self, int, int, int, int, QBrush)
- fillRect (self, QRectF, QColor)
- fillRect (self, QRect, QColor)
- fillRect (self, int, int, int, int, QColor)
- fillRect (self, int, int, int, int, Qt.GlobalColor)
- fillRect (self, QRect, Qt.GlobalColor)
- fillRect (self, QRectF, Qt.GlobalColor)
- fillRect (self, int, int, int, int, Qt.BrushStyle)
- fillRect (self, QRect, Qt.BrushStyle)
- fillRect (self, QRectF, Qt.BrushStyle)
- QFont font (self)
- QFontInfo fontInfo (self)
- QFontMetrics fontMetrics (self)
- bool hasClipping (self)
- initFrom (self, QWidget)
- bool isActive (self)
- Qt.LayoutDirection layoutDirection (self)
- QMatrix matrix (self)
- bool matrixEnabled (self)
- float opacity (self)
- QPaintEngine paintEngine (self)
- QPen pen (self)
- RenderHints renderHints (self)
- resetMatrix (self)
- resetTransform (self)
- restore (self)
- rotate (self, float)
- save (self)
- scale (self, float, float)
- setBackground (self, QBrush)
- setBackgroundMode (self, Qt.BGMode)
- setBrush (self, QBrush)
- setBrush (self, Qt.BrushStyle)
- setBrushOrigin (self, QPointF)
- setBrushOrigin (self, int, int)
- setBrushOrigin (self, QPoint)
- setClipPath (self, QPainterPath, Qt.ClipOperation operation = Qt.ReplaceClip)
- setClipping (self, bool)
- setClipRect (self, QRectF, Qt.ClipOperation operation = Qt.ReplaceClip)
- setClipRect (self, int, int, int, int, Qt.ClipOperation operation = Qt.ReplaceClip)
- setClipRect (self, QRect, Qt.ClipOperation operation = Qt.ReplaceClip)
- setClipRegion (self, QRegion, Qt.ClipOperation operation = Qt.ReplaceClip)
- setCompositionMode (self, CompositionMode)
- setFont (self, QFont)
- setLayoutDirection (self, Qt.LayoutDirection)
- setMatrix (self, QMatrix, bool combine = False)
- setMatrixEnabled (self, bool)
- setOpacity (self, float)
- setPen (self, QColor)
- setPen (self, QPen)
- setPen (self, Qt.PenStyle)
- setRenderHint (self, RenderHint, bool on = True)
- setRenderHints (self, RenderHints, bool on = True)
- setTransform (self, QTransform, bool combine = False)
- setViewport (self, QRect)
- setViewport (self, int, int, int, int)
- setViewTransformEnabled (self, bool)
- setWindow (self, QRect)
- setWindow (self, int, int, int, int)
- setWorldMatrix (self, QMatrix, bool combine = False)
- setWorldMatrixEnabled (self, bool)
- setWorldTransform (self, QTransform, bool combine = False)
- shear (self, float, float)
- strokePath (self, QPainterPath, QPen)
- bool testRenderHint (self, RenderHint)
- QTransform transform (self)
- translate (self, QPointF)
- translate (self, float, float)
- translate (self, QPoint)
- QRect viewport (self)
- bool viewTransformEnabled (self)
- QRect window (self)
- QMatrix worldMatrix (self)
- bool worldMatrixEnabled (self)
- QTransform worldTransform (self)
Static Methods
Detailed Description
Type Documentation
QPainter.CompositionMode
QPainter.PixmapFragmentHint
QPainter.RenderHint
Method Documentation
QPainter.__init__ (self)
QPainter.__init__ (self, QPaintDevice)
QBrush QPainter.background (self)
Qt.BGMode QPainter.backgroundMode (self)
bool QPainter.begin (self, QPaintDevice)
QPainter.beginNativePainting (self)
QRectF QPainter.boundingRect (self, QRectF, int, QString)
QRect QPainter.boundingRect (self, QRect, int, QString)
QRectF QPainter.boundingRect (self, QRectF, QString, QTextOption option = QTextOption())
QRect QPainter.boundingRect (self, int, int, int, int, int, QString)
QBrush QPainter.brush (self)
QPoint QPainter.brushOrigin (self)
QPainterPath QPainter.clipPath (self)
QRegion QPainter.clipRegion (self)
QMatrix QPainter.combinedMatrix (self)
QTransform QPainter.combinedTransform (self)
CompositionMode QPainter.compositionMode (self)
QMatrix QPainter.deviceMatrix (self)
QTransform QPainter.deviceTransform (self)
QPainter.drawArc (self, QRectF, int, int)
QPainter.drawArc (self, QRect, int, int)
QPainter.drawArc (self, int, int, int, int, int, int)
QPainter.drawChord (self, QRectF, int, int)
QPainter.drawChord (self, QRect, int, int)
QPainter.drawChord (self, int, int, int, int, int, int)
QPainter.drawConvexPolygon (self, QPointF point, ...)
QPainter.drawConvexPolygon (self, QPolygonF)
QPainter.drawConvexPolygon (self, QPoint point, ...)
QPainter.drawConvexPolygon (self, QPolygon)
QPainter.drawEllipse (self, QRectF)
QPainter.drawEllipse (self, QRect)
QPainter.drawEllipse (self, int, int, int, int)
QPainter.drawEllipse (self, QPointF, float, float)
QPainter.drawEllipse (self, QPoint, int, int)
QPainter.drawImage (self, QRectF, QImage)
QPainter.drawImage (self, QRect, QImage)
QPainter.drawImage (self, QPointF, QImage)
QPainter.drawImage (self, QPoint, QImage)
QPainter.drawImage (self, int, int, QImage, int sx = 0, int sy = 0, int sw = -1, int sh = -1, Qt.ImageConversionFlags flags = Qt.AutoColor)
QPainter.drawLine (self, QLineF)
QPainter.drawLine (self, QLine)
QPainter.drawLine (self, int, int, int, int)
QPainter.drawLine (self, QPoint, QPoint)
QPainter.drawLines (self, QLineF line, ...)
QPainter.drawLines (self, list-of-QLineF)
QPainter.drawLines (self, QPointF pointPair, ...)
QPainter.drawLines (self, list-of-QPointF)
QPainter.drawLines (self, QLine line, ...)
QPainter.drawLines (self, list-of-QLine)
QPainter.drawLines (self, QPoint pointPair, ...)
QPainter.drawLines (self, list-of-QPoint)
QPainter.drawPath (self, QPainterPath)
QPainter.drawPicture (self, QPointF, QPicture)
QPainter.drawPicture (self, int, int, QPicture)
QPainter.drawPicture (self, QPoint, QPicture)
QPainter.drawPie (self, QRectF, int, int)
QPainter.drawPie (self, QRect, int, int)
QPainter.drawPie (self, int, int, int, int, int, int)
QPainter.drawPixmap (self, QPointF, QPixmap)
QPainter.drawPixmap (self, QPoint, QPixmap)
QPainter.drawPixmap (self, QRect, QPixmap)
QPainter.drawPixmap (self, int, int, QPixmap)
QPainter.drawPixmap (self, int, int, int, int, QPixmap)
QPainter.drawPixmap (self, int, int, int, int, QPixmap, int, int, int, int)
QPainter.drawPixmap (self, int, int, QPixmap, int, int, int, int)
QPainter.drawPixmapFragments (self, list fragments, QPixmap pixmap, PixmapFragmentHints hints = 0)
QPainter.drawPoint (self, QPointF)
QPainter.drawPoint (self, int, int)
QPainter.drawPoint (self, QPoint)
QPainter.drawPoints (self, QPointF point, ...)
QPainter.drawPoints (self, QPolygonF)
QPainter.drawPoints (self, QPoint point, ...)
QPainter.drawPoints (self, QPolygon)
QPainter.drawPolygon (self, QPointF point, ...)
QPainter.drawPolygon (self, QPolygonF, Qt.FillRule fillRule = Qt.OddEvenFill)
QPainter.drawPolygon (self, QPoint point, ...)
QPainter.drawPolygon (self, QPolygon, Qt.FillRule fillRule = Qt.OddEvenFill)
QPainter.drawPolyline (self, QPointF point, ...)
QPainter.drawPolyline (self, QPolygonF)
QPainter.drawPolyline (self, QPoint point, ...)
QPainter.drawPolyline (self, QPolygon)
QPainter.drawRect (self, QRectF)
QPainter.drawRect (self, int, int, int, int)
QPainter.drawRect (self, QRect)
QPainter.drawRects (self, QRectF rect, ...)
QPainter.drawRects (self, list-of-QRectF)
QPainter.drawRects (self, QRect rect, ...)
QPainter.drawRects (self, list-of-QRect)
QPainter.drawRoundedRect (self, QRectF, float, float, Qt.SizeMode mode = Qt.AbsoluteSize)
QPainter.drawRoundedRect (self, int, int, int, int, float, float, Qt.SizeMode mode = Qt.AbsoluteSize)
QPainter.drawRoundedRect (self, QRect, float, float, Qt.SizeMode mode = Qt.AbsoluteSize)
QPainter.drawRoundRect (self, QRectF, int xRound = 25, int yRound = 25)
QPainter.drawRoundRect (self, int, int, int, int, int xRound = 25, int yRound = 25)
QPainter.drawRoundRect (self, QRect, int xRound = 25, int yRound = 25)
QPainter.drawStaticText (self, QPointF topLeftPosition, QStaticText staticText)
QPainter.drawStaticText (self, QPoint p, QStaticText staticText)
QPainter.drawStaticText (self, int x, int y, QStaticText staticText)
QPainter.drawText (self, QPointF, QString)
QRectF boundingRect QPainter.drawText (self, QRectF, int, QString)
QRect boundingRect QPainter.drawText (self, QRect, int, QString)
QPainter.drawText (self, QRectF, QString, QTextOption option = QTextOption())
QPainter.drawText (self, QPoint, QString)
QRect boundingRect QPainter.drawText (self, int, int, int, int, int, QString)
QPainter.drawText (self, int, int, QString)
QPainter.drawTiledPixmap (self, QRectF, QPixmap, QPointF pos = QPointF())
QPainter.drawTiledPixmap (self, QRect, QPixmap, QPoint pos = QPoint())
QPainter.drawTiledPixmap (self, int, int, int, int, QPixmap, int sx = 0, int sy = 0)
bool QPainter.end (self)
QPainter.endNativePainting (self)
QPainter.eraseRect (self, QRectF)
QPainter.eraseRect (self, QRect)
QPainter.eraseRect (self, int, int, int, int)
QPainter.fillRect (self, QRectF, QBrush)
QPainter.fillRect (self, QRect, QBrush)
QPainter.fillRect (self, int, int, int, int, QBrush)
QPainter.fillRect (self, QRectF, QColor)
QPainter.fillRect (self, QRect, QColor)
QPainter.fillRect (self, int, int, int, int, QColor)
QPainter.fillRect (self, int, int, int, int, Qt.GlobalColor)
QPainter.fillRect (self, int, int, int, int, Qt.BrushStyle)
QFont QPainter.font (self)
QFontInfo QPainter.fontInfo (self)
QFontMetrics QPainter.fontMetrics (self)
bool QPainter.hasClipping (self)
QPainter.initFrom (self, QWidget)
bool QPainter.isActive (self)
QMatrix QPainter.matrix (self)
bool QPainter.matrixEnabled (self)
float QPainter.opacity (self)
QPaintEngine QPainter.paintEngine (self)
QPen QPainter.pen (self)
RenderHints QPainter.renderHints (self)
QPainter.resetMatrix (self)
QPainter.resetTransform (self)
QPainter.restore (self)
QPainter.restoreRedirected (QPaintDevice)
QPainter.rotate (self, float)
QPainter.save (self)
QPainter.scale (self, float, float)
QPainter.setBackground (self, QBrush)
QPainter.setBackgroundMode (self, Qt.BGMode)
QPainter.setBrush (self, QBrush)
QPainter.setBrushOrigin (self, QPointF)
QPainter.setBrushOrigin (self, int, int)
QPainter.setBrushOrigin (self, QPoint)
QPainter.setClipPath (self, QPainterPath, Qt.ClipOperation operation = Qt.ReplaceClip)
QPainter.setClipping (self, bool)
QPainter.setClipRect (self, QRectF, Qt.ClipOperation operation = Qt.ReplaceClip)
QPainter.setClipRect (self, int, int, int, int, Qt.ClipOperation operation = Qt.ReplaceClip)
QPainter.setClipRect (self, QRect, Qt.ClipOperation operation = Qt.ReplaceClip)
QPainter.setClipRegion (self, QRegion, Qt.ClipOperation operation = Qt.ReplaceClip)
QPainter.setCompositionMode (self, CompositionMode)
QPainter.setFont (self, QFont)
QPainter.setMatrix (self, QMatrix, bool combine = False)
QPainter.setMatrixEnabled (self, bool)
QPainter.setOpacity (self, float)
QPainter.setPen (self, QColor)
QPainter.setPen (self, QPen)
QPainter.setPen (self, Qt.PenStyle)
QPainter.setRenderHint (self, RenderHint, bool on = True)
QPainter.setRenderHints (self, RenderHints, bool on = True)
QPainter.setTransform (self, QTransform, bool combine = False)
QPainter.setViewport (self, QRect)
QPainter.setViewport (self, int, int, int, int)
QPainter.setViewTransformEnabled (self, bool)
QPainter.setWindow (self, QRect)
QPainter.setWindow (self, int, int, int, int)
QPainter.setWorldMatrix (self, QMatrix, bool combine = False)
QPainter.setWorldMatrixEnabled (self, bool)
QPainter.setWorldTransform (self, QTransform, bool combine = False)
QPainter.shear (self, float, float)
bool QPainter.testRenderHint (self, RenderHint)
QTransform QPainter.transform (self)
QPainter.translate (self, QPointF)
QPainter.translate (self, float, float)
QPainter.translate (self, QPoint)
QRect QPainter.viewport (self)
bool QPainter.viewTransformEnabled (self)
QRect QPainter.window (self)
QMatrix QPainter.worldMatrix (self)
bool QPainter.worldMatrixEnabled (self)
QTransform QPainter.worldTransform (self)