this class extends the QPainter
More...
#include <jkqtpenhancedpainter.h>
|
| JKQTPEnhancedPainter () |
|
| JKQTPEnhancedPainter (QPaintDevice *device) |
|
void | drawComplexRoundedRect (const QRectF &r, double rTopLeft, double rTopRight, double rBottomLeft, double rBottomRight, Qt::SizeMode mode=Qt::AbsoluteSize) |
| draw a rounded rect, where each corner has a separate radius
|
|
void | drawPolylineFast (const QPoint *points, int pointCount) |
|
void | drawPolylineFast (const QPointF *points, int pointCount) |
| faster variant of QPainter::drawPolyline(),it turns out that drawing single lines is way faster than drawing with drawPolyLine()
|
|
void | drawPolylineFast (const QPolygon &polyline) |
|
void | drawPolylineFast (const QPolygonF &polyline) |
|
void | drawRoundedRectOrRect (const QRectF &r, double radius, Qt::SizeMode mode=Qt::AbsoluteSize) |
| draw a rounded rect (radius >0 ), or a simple rect (radius <=0 )
|
|
PainterFlags | painterFlags () const |
| flags, specifying how the JKQTPEnhancedPainter works
|
|
void | setPainterFlag (PainterFlag flag, bool enabled=true) |
| flags, specifying how the JKQTPEnhancedPainter works
|
|
void | setPainterFlag (PainterFlags flags) |
| flags, specifying how the JKQTPEnhancedPainter works
|
|
this class extends the QPainter
◆ PainterFlag
◆ JKQTPEnhancedPainter() [1/2]
JKQTPEnhancedPainter::JKQTPEnhancedPainter |
( |
QPaintDevice * |
device | ) |
|
◆ JKQTPEnhancedPainter() [2/2]
JKQTPEnhancedPainter::JKQTPEnhancedPainter |
( |
| ) |
|
◆ drawComplexRoundedRect()
void JKQTPEnhancedPainter::drawComplexRoundedRect |
( |
const QRectF & |
r, |
|
|
double |
rTopLeft, |
|
|
double |
rTopRight, |
|
|
double |
rBottomLeft, |
|
|
double |
rBottomRight, |
|
|
Qt::SizeMode |
mode = Qt::AbsoluteSize |
|
) |
| |
draw a rounded rect, where each corner has a separate radius
◆ drawPolylineFast() [1/4]
void JKQTPEnhancedPainter::drawPolylineFast |
( |
const QPoint * |
points, |
|
|
int |
pointCount |
|
) |
| |
◆ drawPolylineFast() [2/4]
void JKQTPEnhancedPainter::drawPolylineFast |
( |
const QPointF * |
points, |
|
|
int |
pointCount |
|
) |
| |
faster variant of QPainter::drawPolyline(),it turns out that drawing single lines is way faster than drawing with drawPolyLine()
At least for thin (1 Pixel) lines on non-vector-devices, this does not make much difference in appearance
◆ drawPolylineFast() [3/4]
void JKQTPEnhancedPainter::drawPolylineFast |
( |
const QPolygon & |
polyline | ) |
|
|
inline |
◆ drawPolylineFast() [4/4]
void JKQTPEnhancedPainter::drawPolylineFast |
( |
const QPolygonF & |
polyline | ) |
|
|
inline |
◆ drawRoundedRectOrRect()
void JKQTPEnhancedPainter::drawRoundedRectOrRect |
( |
const QRectF & |
r, |
|
|
double |
radius, |
|
|
Qt::SizeMode |
mode = Qt::AbsoluteSize |
|
) |
| |
draw a rounded rect (radius >0 ), or a simple rect (radius <=0 )
◆ initQEnhacedPainter()
void JKQTPEnhancedPainter::initQEnhacedPainter |
( |
| ) |
|
|
protected |
◆ painterFlags()
◆ setPainterFlag() [1/2]
void JKQTPEnhancedPainter::setPainterFlag |
( |
PainterFlag |
flag, |
|
|
bool |
enabled = true |
|
) |
| |
◆ setPainterFlag() [2/2]
void JKQTPEnhancedPainter::setPainterFlag |
( |
PainterFlags |
flags | ) |
|
◆ m_flags
The documentation for this class was generated from the following file: