Quantcast
Channel: Active questions tagged qpainter - Stack Overflow
Viewing all articles
Browse latest Browse all 58

How can I rotate an ellipse in a QPainterPath in Qt?

$
0
0

i know i can draw an ellipse in Qt with QPainter. But i want to rotate the Ellipse inside a QPainterpath. Does anybody know how i can do that?

The goal is to subtract two ellipses. I know that i can subtract two ellipses by subtracting two QPainterPaths. So my idea was to do that using the QPainterpath. But i dont know how i am able to rotate the ellipse inside my QPainterPath oder how i can rotate the QPainterPath.

But there is no function such as

QPainterPath path;path.addEllipse(100,100,100,100);path.rotate(45);

Viewing all articles
Browse latest Browse all 58

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>