how i can create a triangle in class QPainterPath path?
-
wrote on 13 Feb 2016, 16:55 last edited by stackprogramer
i can create a rectangle in class QPainterPath by using method addrect;
my question is it has not addtriangle,how i can create triangle with it??thanks for reply.
-
wrote on 13 Feb 2016, 18:07 last edited by
Hi! You can use
void QPainterPath::addPolygon(const QPolygonF &polygon)
. -
Hi! You can use
void QPainterPath::addPolygon(const QPolygonF &polygon)
.wrote on 14 Feb 2016, 06:52 last edited by stackprogramer@Wieland ,nice .......it works ,thanks for reply:)
3/3