7. Ring Documentation, Release 1.6
• QString getOpenFileName(QWidget *,QString,QString,QString)
• QUrl getSaveFileUrl(QWidget *,QString, QUrl,QString, QString *, QFileDialog::Option options,QStringList)
99.61 QPainter Class
C++ Reference : http://doc.qt.io/qt-5/QPainter.html
Parameters : void
• QBrush background(void)
• int backgroundMode(void)
• bool begin(QPaintDevice *device)
• void beginNativePainting(void)
• QRect boundingRect(int x, int y, int w, int h, int flags, QString text)
• QBrush brush(void)
• QPoint brushOrigin(void)
• QRectF clipBoundingRect(void)
• QPainterPath clipPath(void)
• QRegion clipRegion(void)
• QTransform combinedTransform(void)
• int compositionMode(void)
• QPaintDevice *device(void)
• QTransform deviceTransform(void)
• void drawArc(int x, int y, int width, int height, int startAngle, int spanAngle)
• void drawChord(int x, int y, int width, int height, int startAngle, int spanAngle)
• void drawConvexPolygon( QPoint * points, int pointCount)
• void drawEllipse(int x, int y, int width, int height)
• void drawGlyphRun( QPointF position, QGlyphRun glyphs)
• void drawImage(int x, int y, QImage image)
• void drawLine(int x1, int y1, int x2, int y2)
• void drawLines( QLine * lines, int lineCount)
• void drawPath( QPainterPath path)
• void drawPicture(int x, int y, QPicture picture)
• void drawPie(int x, int y, int width, int height, int startAngle, int spanAngle)
• void drawPixmap(int x, int y, QPixmap)
• void drawPoints( QPointF * points, int pointCount)
• void drawRect(int x, int y, int width, int height)
• void drawRects( QRectF * rectangles, int rectCount)
99.61. QPainter Class 1679
8. Ring Documentation, Release 1.6
• void drawRoundedRect(int x, int y, int w, int h, qreal xRadius, qreal yRadius, Qt::SizeMode mode)
• void drawStaticText(int left, int top, QStaticText staticText)
• void drawText(int x, int y, QString text)
• void drawTiledPixmap(int x, int y, int width, int height, QPixmap pixmap, int sx, int sy)
• bool end(void) # In RingQt use : bool endpaint(void)
• void endNativePainting(void)
• void eraseRect(int x, int y, int width, int height)
• void fillPath( QPainterPath path, QBrush brush)
• void fillRect(int x, int y, int width, int height, QBrush)
• QFont font(void)
• QFontInfo fontInfo(void)
• bool hasClipping(void)
• void initFrom( QWidget *widget)
• bool isActive(void)
• int layoutDirection(void)
• double opacity(void)
• QPaintEngine *paintEngine(void)
• QPen pen(void)
• int renderHints(void)
• void resetTransform(void)
• void restore(void)
• void rotate(qreal angle)
• void save(void)
• void scale(double sx, double sy)
• void setBackground( QBrush brush)
• void setBackgroundMode(Qt::BGMode mode)
• void setBrush(QBrush brush)
• void setBrushOrigin(int x, int y)
• void setClipPath( QPainterPath path, Qt::ClipOperation operation)
• void setClipRect(int x, int y, int width, int height, Qt::ClipOperation operation)
• void setClipRegion( QRegion region, Qt::ClipOperation operation)
• void setClipping(bool enable)
• void setCompositionMode(QPainter::CompositionMode mode)
• void setFont( QFont font)
• void setLayoutDirection(Qt::LayoutDirection direction)
• void setOpacity(qreal opacity)
99.61. QPainter Class 1680