On X11 pixel coordinates are stored in shorts. Qt produces overruns when mapping QCOORDS to shorts.
QPainter scales fonts, line and fill patterns to the metrics of the paint device. Other values like the geometries of rects, points remain device independend. To enable a device independent widget implementation, QwtPainter adds scaling of these geometries. (Unfortunately QPainter::scale scales both types of paintings, so the objects of the first type would be scaled twice).
|
Static Public Member Functions |
void | setMetricsMap (const QPaintDevice *layout, const QPaintDevice *device) |
void | setMetricsMap (const QwtMetricsMap &) |
void | resetMetricsMap () |
const QwtMetricsMap & | metricsMap () |
void | setDeviceClipping (bool) |
bool | deviceClipping () |
void | setClipRect (QPainter *, const QRect &) |
void | drawText (QPainter *, int x, int y, const QString &, int len=-1) |
void | drawText (QPainter *, const QPoint &, const QString &, int len=-1) |
void | drawText (QPainter *, int x, int y, int w, int h, int flags, const QString &, int len=-1) |
void | drawText (QPainter *, const QRect &, int flags, const QString &, int len=-1) |
void | drawSimpleRichText (QPainter *, const QRect &, int flags, QSimpleRichText &) |
void | drawRect (QPainter *, int x, int y, int w, int h) |
void | drawRect (QPainter *, const QRect &rect) |
void | fillRect (QPainter *, const QRect &, const QBrush &) |
void | drawEllipse (QPainter *, const QRect &) |
void | drawLine (QPainter *, int x1, int y1, int x2, int y2) |
void | drawLine (QPainter *, const QPoint &p1, const QPoint &p2) |
void | drawPolygon (QPainter *, const QPointArray &pa) |
void | drawPolyline (QPainter *, const QPointArray &pa) |
void | drawPoint (QPainter *, int x, int y) |
void | drawRoundFrame (QPainter *, const QRect &, int width, const QColorGroup &cg, bool sunken) |
QPointArray | clip (const QPointArray &) |