Hi,
QCursor::pos() ideally returns global position of the cursor. But for Wayland (current Ubuntu LTS) it returns a local position within the parent window.
This is actually documented by Qt, but: Back in Qt5 it worked just fine!
Problem is this breaks the popular floating dock library Qt-Advanced-docking-system, see this issue: https://github.com/githubuser0xFFFF/...tem/issues/738
The 6.9.0 tag is actually misleading, it affects the entire 6.x series.
Other docking libraries seem to implement everything without QCursor::pos(), but here it's quiet deeply ingrained and hard to get rid of.
Question: how would one go about using the Wayland native platform api to get the current global cursor position?
I tried some Claude suggestions, but it always returns the relative location within a parent window.
Bookmarks