Hey there,
I'm trying to display a window widget with rounded edges.
I've tryed with setMask + specifying a mask, but the result is not convincing.

QRect maskRect
(rect
().
x() + 1, rect
().
y() + 1,
rect().width() - 1, rect().height() - 1);
setMask
(QRegion(ZePainterController
::get()->DrawRoundRect
(maskRect,
2000 / maskRect.width(), 2000 / maskRect.height()).toFillPolygon().toPolygon()));
QRect maskRect(rect().x() + 1, rect().y() + 1,
rect().width() - 1, rect().height() - 1);
setMask(QRegion(ZePainterController::get()->DrawRoundRect(maskRect,
2000 / maskRect.width(), 2000 / maskRect.height()).toFillPolygon().toPolygon()));
To copy to clipboard, switch view to plain text mode
Don't know If I should use a mask bitmap ?
Bookmarks