summaryrefslogtreecommitdiffstats
path: root/src/printsupport/kernel/qcups.cpp
diff options
context:
space:
mode:
authorEirik Aavitsland <eirik.aavitsland@qt.io>2022-04-06 14:08:28 +0200
committerEirik Aavitsland <eirik.aavitsland@qt.io>2022-04-06 23:30:57 +0200
commit6963190581eb49b96c68b0e61304663672f1e42b (patch)
treea243e76567043508513f3830239332925ce99fbe /src/printsupport/kernel/qcups.cpp
parentca106e261e491c637681c22f537ba5d4eaf0513f (diff)
Graphicsview: Avoid background clearing glitches under fractional DPR
QGraphicsView enables autoFillBackground on the viewport widget, so the dirty area is cleared before repaint. Then QGraphicsView fills the same area with the background color. However, under fractional DPR scaling, the scaled version of the dirty rect may end up covering only a fractional part of the pixels on the edges. If antialising is enabled, such pixels will be only partially filled with the background color, leaving the clear color partially visible as glitches. This can be seen in the dragdroprobot example. Fix by disabling AA during background filling, as it has no purpose then anyway. Task-number: QTBUG-96223 Pick-to: 6.3 6.2 5.15 Change-Id: Ica00997141701faa0cf368caced84ae50ba017d0 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/printsupport/kernel/qcups.cpp')
0 files changed, 0 insertions, 0 deletions