|
| static void | setPolylineSplitting (bool) |
| | En/Disable line splitting for the raster paint engine.
|
| |
| static bool | polylineSplitting () |
| |
| static void | setRoundingAlignment (bool) |
| | Enable whether coordinates should be rounded, before they are painted to a paint engine that floors to integer values.
|
| |
| static bool | roundingAlignment () |
| | Check whether coordinates should be rounded, before they are painted to a paint engine that rounds to integer values.
|
| |
| static bool | roundingAlignment (const QPainter *) |
| |
|
static void | drawText (QPainter *, qreal x, qreal y, const QString &) |
| | Wrapper for QPainter::drawText()
|
| |
|
static void | drawText (QPainter *, const QPointF &, const QString &) |
| | Wrapper for QPainter::drawText()
|
| |
|
static void | drawText (QPainter *, qreal x, qreal y, qreal w, qreal h, int flags, const QString &) |
| | Wrapper for QPainter::drawText()
|
| |
|
static void | drawText (QPainter *, const QRectF &, int flags, const QString &) |
| | Wrapper for QPainter::drawText()
|
| |
| static void | drawSimpleRichText (QPainter *, const QRectF &, int flags, const QTextDocument &) |
| | Draw a text document into a rectangle.
|
| |
|
static void | drawRect (QPainter *, qreal x, qreal y, qreal w, qreal h) |
| | Wrapper for QPainter::drawRect()
|
| |
|
static void | drawRect (QPainter *, const QRectF &rect) |
| | Wrapper for QPainter::drawRect()
|
| |
|
static void | fillRect (QPainter *, const QRectF &, const QBrush &) |
| | Wrapper for QPainter::fillRect()
|
| |
|
static void | drawEllipse (QPainter *, const QRectF &) |
| | Wrapper for QPainter::drawEllipse()
|
| |
|
static void | drawPie (QPainter *, const QRectF &r, int a, int alen) |
| | Wrapper for QPainter::drawPie()
|
| |
|
static void | drawLine (QPainter *, qreal x1, qreal y1, qreal x2, qreal y2) |
| | Wrapper for QPainter::drawLine()
|
| |
|
static void | drawLine (QPainter *, const QPointF &p1, const QPointF &p2) |
| | Wrapper for QPainter::drawLine()
|
| |
|
static void | drawLine (QPainter *, const QLineF &) |
| | Wrapper for QPainter::drawLine()
|
| |
|
static void | drawPolygon (QPainter *, const QPolygonF &) |
| | Wrapper for QPainter::drawPolygon()
|
| |
|
static void | drawPolyline (QPainter *, const QPolygonF &) |
| | Wrapper for QPainter::drawPolyline()
|
| |
|
static void | drawPolyline (QPainter *, const QPointF *, int pointCount) |
| | Wrapper for QPainter::drawPolyline()
|
| |
|
static void | drawPolygon (QPainter *, const QPolygon &) |
| | Wrapper for QPainter::drawPolygon()
|
| |
|
static void | drawPolyline (QPainter *, const QPolygon &) |
| | Wrapper for QPainter::drawPolyline()
|
| |
|
static void | drawPolyline (QPainter *, const QPoint *, int pointCount) |
| | Wrapper for QPainter::drawPolyline()
|
| |
|
static void | drawPoint (QPainter *, const QPoint &) |
| | Wrapper for QPainter::drawPoint()
|
| |
|
static void | drawPoints (QPainter *, const QPolygon &) |
| | Wrapper for QPainter::drawPoints()
|
| |
|
static void | drawPoints (QPainter *, const QPoint *, int pointCount) |
| | Wrapper for QPainter::drawPoints()
|
| |
|
static void | drawPoint (QPainter *, qreal x, qreal y) |
| | Wrapper for QPainter::drawPoint()
|
| |
|
static void | drawPoint (QPainter *, const QPointF &) |
| | Wrapper for QPainter::drawPoint()
|
| |
|
static void | drawPoints (QPainter *, const QPolygonF &) |
| | Wrapper for QPainter::drawPoints()
|
| |
|
static void | drawPoints (QPainter *, const QPointF *, int pointCount) |
| | Wrapper for QPainter::drawPoints()
|
| |
|
static void | drawPath (QPainter *, const QPainterPath &) |
| | Wrapper for QPainter::drawPath()
|
| |
|
static void | drawImage (QPainter *, const QRectF &, const QImage &) |
| | Wrapper for QPainter::drawImage()
|
| |
|
static void | drawPixmap (QPainter *, const QRectF &, const QPixmap &) |
| | Wrapper for QPainter::drawPixmap()
|
| |
| static void | drawRoundFrame (QPainter *, const QRectF &, const QPalette &, int lineWidth, int frameStyle) |
| | Draw a round frame.
|
| |
| static void | drawRoundedFrame (QPainter *, const QRectF &, qreal xRadius, qreal yRadius, const QPalette &, int lineWidth, int frameStyle) |
| | Draw a rectangular frame with rounded borders.
|
| |
| static void | drawFrame (QPainter *, const QRectF &rect, const QPalette &palette, QPalette::ColorRole foregroundRole, int lineWidth, int midLineWidth, int frameStyle) |
| | Draw a rectangular frame.
|
| |
|
static void | drawFocusRect (QPainter *, const QWidget *) |
| | Draw a focus rectangle on a widget using its style.
|
| |
|
static void | drawFocusRect (QPainter *, const QWidget *, const QRect &) |
| | Draw a focus rectangle on a widget using its style.
|
| |
| static void | drawColorBar (QPainter *, const QwtColorMap &, const QwtInterval &, const QwtScaleMap &, Qt::Orientation, const QRectF &) |
| | Draw a color bar into a rectangle.
|
| |
| static bool | isAligning (const QPainter *) |
| | Check if the painter is using a paint engine, that aligns coordinates to integers.
|
| |
| static bool | isX11GraphicsSystem () |
| | Check is the application is running with the X11 graphics system that has some special capabilities that can be used for incremental painting to a widget.
|
| |
| static void | fillPixmap (const QWidget *, QPixmap &, const QPoint &offset=QPoint()) |
| | Fill a pixmap with the content of a widget.
|
| |
| static void | fillRegion (QPainter *painter, const QRegion ®ion) |
| | 填充区域
|
| |
| static void | fillBackground (QPainter *painter, QWidget *widget, const QVector< QRectF > &fillRects) |
| | 填充widget背景的指定矩形区域
|
| |
| static void | fillBackground (QPainter *painter, QWidget *canvas) |
| | 自动检测并填充widget的背景
|
| |
| static void | drawBackgound (QPainter *, const QRectF &, const QWidget *) |
| | Fill rect with the background of a widget.
|
| |
| static void | drawCanvasBackgound (QPainter *painter, QWidget *canvas) |
| | 绘制widget的背景
|
| |
| static void | drawStyledBackground (QWidget *w, QPainter *painter) |
| | 确保widget背景按照当前GUI风格(如Windows、Fusion等)正确绘制
|
| |
| static QPixmap | backingStore (QWidget *, const QSize &) |
| |
| static qreal | devicePixelRatio (const QPaintDevice *) |
| |
| static qreal | effectivePenWidth (const QPen &) |
| |
| static int | horizontalAdvance (const QFontMetrics &, const QString &) |
| | Distance appropriate for drawing a subsequent character after text.
|
| |
| static qreal | horizontalAdvance (const QFontMetricsF &, const QString &) |
| | Distance appropriate for drawing a subsequent character after text.
|
| |
| static int | horizontalAdvance (const QFontMetrics &, QChar) |
| | Distance appropriate for drawing a subsequent character after ch.
|
| |
| static qreal | horizontalAdvance (const QFontMetricsF &, QChar) |
| | Distance appropriate for drawing a subsequent character after ch.
|
| |
| static QFont | scaledFont (const QFont &, const QPaintDevice *=nullptr) |
| | Adjust the DPI value of font according to the DPI value of the paint device.
|
| |
| static QWidget * | findBackgroundWidget (QWidget *w) |
| | 查找具有可见背景的顶层widget
|
| |