Great it seems to be working :
setMask
(QRegion(zePainter.
DrawRoundRect(QRect(rect
().
x() + 2, rect
().
y() + 2,
rect().width() - 4, rect().height() - 4),
2000 / rect().width(), 2000 / rect().height()).toFillPolygon().toPolygon()));
setMask(QRegion(zePainter.DrawRoundRect(QRect(rect().x() + 2, rect().y() + 2,
rect().width() - 4, rect().height() - 4),
2000 / rect().width(), 2000 / rect().height()).toFillPolygon().toPolygon()));
To copy to clipboard, switch view to plain text mode
Thank you.
Unfortunately it's a bit pixelated, Any way to apply antialiasing or a float conversion ?
Ben.
Bookmarks