Details
-
Suggestion
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
None
Description
Here, I'm sharing proposals from a commercial user regarding improvements to the document:
Item QML Type - point mapToGlobal(real x, real y)
https://doc.qt.io/qt-6/qml-qtquick-item.html#mapToGlobal-method
This document should explicitly clarify that in multi-screen environments, the global coordinates returned by mapToGlobal() are relative to the "default" monitor, not the monitor where the application window is currently displayed.
Item QML Type
https://doc.qt.io/qt-6/qml-qtquick-item.html
- point mapFromGlobal(real x, real y)
- point mapFromItem(Item item, point p)
- rect mapFromItem(Item item, rect r)
- point mapFromItem(Item item, real x, real y)
- rect mapFromItem(Item item, real x, real y, real width, real height)
- point mapToGlobal(real x, real y)
- point mapToItem(Item item, point p)
- rect mapToItem(Item item, rect r)
- point mapToItem(Item item, real x, real y)
- rect mapToItem(Item item, real x, real y, real width, real height)
The descriptions above would benefit from including a link to the document below, allowing QML users to better understand the underlying concepts:
"Concepts - Visual Coordinates in Qt Quick"
https://doc.qt.io/qt-6/qtquick-visualcanvas-coordinates.html