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

Dragging the main window over the top edge of the screen sets wrong window position

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.14.2, 5.15.2, 6.0.3
    • Fix Version/s: None
    • Component/s: Widgets: Main Window
    • Labels:
      None
    • Environment:
      MBP 2017 macOS 10.15.7
    • Platform/s:
      macOS

      Description

      • Start attached project
      • Put the mouse pointer to the toolbar near the Print button (the toolbar part of the unified title and toolbar)
      • Drag window to the top over the screen edge (unified_toolbar_drag_direction.png)

      The application prints the position of the window and global coordinates of the (0,0) point on this window.

      • Stop when the Y coordinate becomes negative.
      • Click theĀ Print button - it outputs the same coordinates.

      Now the position of the window is incorrect, global coordinates obtained with mapToGlobal are incorrect as well.

      • Put the mouse pointer to the title part of the unified title and toolbar
      • Drag to the top - the coordinates are positive and correct

      It is easier to reproduce it with an MBP trackpad, but also reproducible with an ordinary mouse.

      In our app, we use mapToGlobal to determine the position for the popup window, and it is incorrect in such circumstances.

        Attachments

        1. unified_toolbar_bug.mp4
          4.82 MB
          Sergey Pashkov
        2. unified_toolbar_drag_direction.png
          888 kB
          Sergey Pashkov
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Reporter:
            sergey_pashkov Sergey Pashkov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes