Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-134542

Improvement proposals for the Item QML Type Document

    XMLWordPrintable

Details

    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

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qtqmlteam Qt Qml Team User
            hitoshiito Hitoshi Ito
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes