Details
-
Suggestion
-
Resolution: Out of scope
-
P3: Somewhat important
-
None
-
None
Description
Examples:
QPainterPath::linePath(x1, y1, x2, y2);
QPainterPath::rectPath(x1, y1, w, h);
QPainterPath::ellipsePath(x1, y1, w, h);
QPainterPath::pointPath(x, y);
Maybe QPainterPath::textPath(...) and QPainterPath::polygonPath(...) as well?
This would avoid having to write
QPainterPath path;
path.addRect(x1, y1, w, h);
doStuff(path);
instead just
doStuff(QPainterPath::rectPath(x1, y1, w, h));