SUMMARY When desktop scaling is enabled, "Bit edit" checkboxes have uneven border widths. See attached screenshot. STEPS TO REPRODUCE 1. Go to KDE System Settings -> Display and Monitor -> Scale Display. 2. Select scale factor greater than 1.0. I used 1.7. 3. Reboot. 4. Launch KCalc. Make sure it is in Numerical System Mode and Show Bit Edit is enabled. OBSERVED RESULT Bit edit checkboxes have borders of uneven width, as if scaled using nearest neighbour filter. EXPECTED RESULT The checkboxes should be drawn according to the scaling factor, not scaled post-drawing. This would result in a more uniform look of the checkboxes. SOFTWARE/OS VERSIONS Linux: Kubuntu 19.04 KDE Plasma Version: 5.15.4 KDE Frameworks Version: 5.56.0 Qt Version: 5.12.2 KCalc: 18.12.3
Created attachment 120363 [details] KCalc with uneven Bit Edit checkbox borders
Enabling antialiasing in BitButton::paintEvent() should give better rendering with fractional scaling. https://cgit.kde.org/kcalc.git/tree/kcalc_bitset.cpp#n42 https://doc.qt.io/qt-5/qpainter.html#rendering-quality
Git commit 895a9731984b071027d85dfd59e703acb35c467c by Christoph Feck. Committed on 10/07/2019 at 21:35. Pushed by cfeck into branch 'master'. Enable Antialiasing in bitset editor FIXED-IN: 19.08.0 M +1 -0 kcalc_bitset.cpp https://commits.kde.org/kcalc/895a9731984b071027d85dfd59e703acb35c467c