Rotate an ellipse drawn by Marble painter drawEllipse
Unsolved
3rd Party Software
-
I am wondering if there is a way to rotate an ellipse that I drew in Qt using marble's geoPainter?
GeoDataLinearRing *ring = new GeoDataLinearRing;
addPoints(*ring);painter->setPen(Qt::green);
painter->drawEllipse(GeoDataCoordinates(26, 44, 0, GeoDataCoordinates::Degree), 100, 50);
painter->rotate(45); -
Hi,
Why are you rotating the painter after drawing the ellipse ?
On a side note,
@Phamy1289 said in Rotate an ellipse drawn by Marble painter drawEllipse:
GeoDataLinearRing *ring = new GeoDataLinearRing;
addPoints(*ring);This looks wrong. Why are you creating it on the heap when addPoints takes an object.