Priority: P1: Critical
Affects Version/s: 6.0.0 Beta5
Fix Version/s: 6.0.0
Component/s: GUI: Painting
Environment:Windows 10 Professional 64bit latest version
Arch Linux -> KDE Plasma 5.20.3 desktop environment
Screen Resolution 2560 x 1440
Commits:a31484302d71c29c0e0e62f9941f9d5f0c87f9aa (qt/qtbase/dev) 9379e47831bd634aa046cf9a21542371ddde5c66 (qt/qtbase/6.0.0) c0b0ade6223c7ed492069f2fe0d801b4a5893e3d (qt/qtbase/6.0)
Drawing lines with QPainter:drawLine() can lead to artifacts if QPainter:scale() is used in combination with QPainter:setRenderHints(QPainter::Antialiasing, true).
Removing either QPainter::Antialiasing or QPainter:scale() eleminates the drawing artifacts.
This is a regression: Qt 5.15.2 and prior versions doesn't show this issue.
- This example application draws a single vertical line.
- After executing the application move its window to the upper left corner of the screen.
- Then slowly enlarge the application window by dragging the bottom right corner of the application window using the mouse.
- Then at some point a not intended horizontal line shows up - which is a bug.