How to draw Convex Rectangle in combination with ellipsoids by using Qt4.8 (C++)? (top view of a boat)

470 Views Asked by At

I'm currently trying to draw the top view of a boat by using Qt 4.8 (C++). I want to implement a QWidget in which a boat moves around.

Therefore I need to draw the top view of a boat, it should look similiar to this (only need the outer boarders):

example of boat
(source: 4vector.com)

Currently I'm experimenting with QPainter in combination with QPainterPath but I can't figure out how to combine the ellipsoids and rectangles correctly. Another option would be to draw it as an polygon but I would need a lot of points to let it look good.

Besides I think a solution by using only a rectangle and two ellipsoids or simliar solutions would be more beautiful.

Many thanks in advance for your help!

0

There are 0 best solutions below