Quantcast
Channel: QPainter draws the ellipse at the very top left, ignoring the initial coords - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by Marco F. for QPainter draws the ellipse at the very top left,...

If you want to draw the coordinates relative to the starting point, then you have to shift the origin:void MainWindow::paintEvent(QPaintEvent *event) { QPainter painter(this); QPainterPath path;...

View Article



Image may be NSFW.
Clik here to view.

QPainter draws the ellipse at the very top left, ignoring the initial coords

I want to draw an ellipse using QPainter and QPainterPath.I have a set of coordinates of my desired ellipse in form of a string, and want the ellipse to be drawn based on these coordinates.However, the...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images