[QUOTE=Uwe;224305]
QPolygonF points
= transform.
mapToPolygon( QRectF( 0,
0, rect.
width(), rect.
height() );
QPolygonF points = transform.mapToPolygon( QRectF( 0, 0, rect.width(), rect.height() );
To copy to clipboard, switch view to plain text mode
i used QRect as there is no transform.mapToPolygon takes QRectF
this is what i wrote :
grid.setTop(Ox);
grid.setLeft(Oy);
grid.setHeight(Hight);
grid.setWidth(Width);
QTransform Tr;
Tr.translate(grid.top(),grid.left());
Tr.rotate(30);
QPolygonF points
= Tr.
mapToPolygon(QRect(0,
0, grid.
width(), grid.
height()));
curve1->setSamples( points );
QRect grid;
grid.setTop(Ox);
grid.setLeft(Oy);
grid.setHeight(Hight);
grid.setWidth(Width);
QTransform Tr;
Tr.translate(grid.top(),grid.left());
Tr.rotate(30);
QPolygonF points = Tr.mapToPolygon(QRect(0, 0, grid.width(), grid.height()));
curve1->setSamples( points );
To copy to clipboard, switch view to plain text mode
but the resulted graph was not rectangle it was
qwt.jpeg
Bookmarks