Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.11.0
Description
On the cocoa and windows platforms a QCursor's hotspot coordinates are given in device-independent pixels and it's pixmap is scaled according to it's devicePixelRatio.
On the xcb, wayland, and eglfs platforms a QCursor's hotspot coordinates are in physical pixels and it's pixmap's devicePixelRatio is ignored.
It would be cool if the behavior was consistent across platforms.
Attached example works as expected on Windows (cursor is scaled and hotspot is always in the middle) but not Linux/X11 (cursor is not scaled or hotspot is incorrect).
Attachments
Issue Links
- relates to
-
QTBUG-34116 QCursor does not support hi-dpi (retina) resolution
- Closed
-
QTBUG-52276 [Win] Custom QCursor hotspot not set correctly when using a High DPI display and Qt::AA_EnableHighDpiScaling is set
- Closed
-
QTBUG-56555 Need clarification of QScreen::geometry() for High DPI screens
- Reported
-
QTBUG-79472 Finish remaining High DPI issues in Qt 5
- Closed
- resulted from
-
QTBUG-68376 Zoom in/out mouse cursor has wrong hotspot
- Closed
Gerrit Reviews
For Gerrit Dashboard: QTBUG-68571 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
319433,5 | WIP: xcb: support hidpi pixmap in QCursor | dev | qt/qtbase | Status: NEW | -2 | 0 |