diff --git a/components/flatbutton.cpp b/components/flatbutton.cpp index 2714397..1269bf7 100644 --- a/components/flatbutton.cpp +++ b/components/flatbutton.cpp @@ -82,7 +82,9 @@ void FlatButton::paintEvent(QPaintEvent *event) brush.setStyle(Qt::SolidPattern); brush.setColor(d->delegate->backgroundColor()); painter.setOpacity(bgOpacity); - painter.fillRect(rect(), brush); + painter.setBrush(brush); + painter.setPen(Qt::NoPen); + painter.drawRoundedRect(rect(), 3, 3); } #ifdef DEBUG_LAYOUT