for(int i=0; i< 50; i++) {
painter->save();
painter->translate(zero_point);
painter->rotate(-90 - i * 7.2);
painter
->translate
(QPointF(-zero_point.
x(),
-zero_point.
y()));
Qt
::AlignLeft | Qt
::AlignBottom,
QString::number(i
));
painter->restore();
}
QPointF zero_point = QwtScaleMap::transform(xMap, yMap, QPointF(0, 0));
for(int i=0; i< 50; i++) {
painter->save();
painter->translate(zero_point);
painter->rotate(-90 - i * 7.2);
painter->translate(QPointF(-zero_point.x(), -zero_point.y()));
QwtPainter::drawText(painter, QwtScaleMap::transform(xMap, yMap, QRectF(-14,595-100,100,100)),
Qt::AlignLeft | Qt::AlignBottom, QString::number(i));
painter->restore();
}
To copy to clipboard, switch view to plain text mode
Bookmarks