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

High DPI: Coordinate conversion under multi-screen

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 6.3.0
    • GUI: High-DPI, QPA: Wayland
    • None
    • Linux/Wayland

    Description

       

      There are two screens under wayland, the zoom factor is 1.25, and the window is displayed on the second screen, as shown below:

      Maindow is displayed on the second screen, we want to get the geometry

       

       

        gemoetry.x  = ( topleft - 1920) * 1.25 + 1920

       

      But the topleft of the window under wayland is always 0,0. So no matter where the window is, gemoetry.x = ( 0 - 1920) * 1.25 + 1920 = 384

       

      At the moment QCursor::pos() will also get the wrong result.

       

      The location of the menu also shows an error.

       

      Attachments

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

        Activity

          People

            qt.team.graphics.and.multimedia Qt Graphics Team
            tanghaixiang haixiang tang
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes