Can't find any example of doing it. I need to take ready image and add some radius, also have the rest of the corners transparent.
Any ideas ?
Thanks
Printable View
Can't find any example of doing it. I need to take ready image and add some radius, also have the rest of the corners transparent.
Any ideas ?
Thanks
In case somebody will need it.
Code:
out.fill(Qt::transparent); QPen pen; pen.setColor(Qt::darkGray); pen.setJoinStyle(Qt::RoundJoin); painter.setBrush(brush); painter.setPen(pen); painter.drawRoundedRect(0, 0, image.width(), image.height(), 20, 20); out.save("image.png", "PNG", 100);