Is it possible to draw an ellipse in Qt C ++ without using a rectangle?

I use C ++ in Qt and I would like to draw an ellipse. From the Qt documentation, I found that I can use drawEllipse to draw an ellipse from a border rectangle:

void QPainter::drawEllipse(const QRectF &rectangle)

and the rectangle is set:

QRectF(qreal x, qreal y, qreal width, qreal height)

However, this gives only an ellipse with a horizontal / vertical major and minor axis.

My ellipse is defined by two coordinate sets to indicate the main axis and the relationship between the length of the main and secondary axes. Therefore, the axes may have a slope that is not horizontal or vertical. (I need to use this method, since I also export it to a dxf file that has this notation)

My question is:

Is there any other way to draw an ellipse than using a border rectangle and then rotating it?

/ , , .

+4
1

, , ?

. . , , .

. , . , , .

, . - , , ( ).

+1

All Articles