Skip to content
/ qtbase Public

Commit 11a2bcd

Browse files
committed
Widgets/Fusion style: adjust painting of PE_Frame
Similar to the previous commits for QScrollBar and FrameTabWidget use QPainter::Antialising and translate the painter by 0.5/0.5 to get a proper result on high-dpi displays. Fixes: QTBUG-126009 Pick-to: 6.11 6.10 6.8 Change-Id: Id0c1bc9e2720d6c51f5dd18bba4094ed985ed8a0 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
1 parent 7499237 commit 11a2bcd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/widgets/styles/qfusionstyle.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,8 @@ void QFusionStyle::drawPrimitive(PrimitiveElement elem,
473473
break;
474474
}
475475
QPainterStateGuard psg(painter);
476+
painter->setRenderHint(QPainter::Antialiasing, true);
477+
painter->translate(0.5, 0.5);
476478
painter->setPen(outline.lighter(108));
477479
painter->drawRect(option->rect.adjusted(0, 0, -1, -1));
478480
break;

0 commit comments

Comments
 (0)