Bug 433710

Summary: wrong character in detail popup box on hidpi screen
Product: [Applications] kfontview Reporter: oldherl <oldherl>
Component: generalAssignee: Unassigned bugs <unassigned-bugs-null>
Status: REPORTED ---    
Severity: normal CC: oldherl
Priority: NOR    
Version First Reported In: 5.21.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: screenshot of the wrong character

Description oldherl 2021-02-27 17:18:50 UTC
Created attachment 136234 [details]
screenshot of the wrong character

SUMMARY

Point the mouse cursor to the characters when viewing a particular Unicode block. A detail box pops out to show the character under the mouse cursor. But it is the wrong character on my hidpi (2x) screen, and it's about half the distance between the mouse cursor and the origin porint (top-left corner).

STEPS TO REPRODUCE
1. Use a hi-dpi (2x) screen setting.
2. Open a font with many characters in kfontview. For example, any of the Noto Sans CJK font family.
3. Select a Unicode block with many characters.
4. Point the mouse cursor to a character and see the popup detail box.

OBSERVED RESULT

The character in the detail box is the one approximately at the middle of the top-left corner and the cursor. See the attachment. The character in the orange circle is not the one under the cursor (in the blue circle).

EXPECTED RESULT

The character in the popup box should be the one under the cursor (the blue one).

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:
Arch Linux
(available in About System)
KDE Plasma Version: 5.21.1
KDE Frameworks 5.79.0
Qt 5.15.2 (built against 5.15.2)
The xcb windowing system

ADDITIONAL INFORMATION