I have a code like:
QPainterPath groupPath;
QPen pen; // new
pen.setCosmetic(1); // new
groupPath.setPen(pen); // error (error: class "QPainterPath" has no member "setPen")
groupPath.moveTo(60.0, 40.0);
groupPath.arcTo(40.0, 35.0, 40.0, 10.0, 180.0, 180.0);
groupPath.moveTo(40.0, 40.0);
groupPath.lineTo(40.0, 80.0);
groupPath.arcTo(40.0, 75.0, 40.0, 10.0, 0.0, 180.0);
groupPath.lineTo(80.0, 80.0);
groupPath.lineTo(80.0, 40.0);
groupPath.closeSubpath();
How can I use setPen to use Cosmetic in my code?