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

Dragging on Android with HighDpiScaling enabled doesn't use correct scaling

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.8.0 RC
    • Fix Version/s: 5.9.0 Beta 2
    • Component/s: GUI: Drag and Drop
    • Labels:
      None
    • Environment:
      Android

      Description

      When dragging objects on Android with the Qt::AA_EnableHighDpiScaling flag enabled, the drag pixmap is not at the touch point, but moved way to fast and even out of the screen. Drops doesn't get registered as well, when outside the screen

      Reproducable with the FridgeMagnets example and QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling); added before QApplication creation in main.cpp

      Additional remarks:

      • Pixmap position jumps between drag start and drag movement
      • top left corner / (0,0) is positioned correct, at (25%/25%) drag pixmap is at bottom right corner (probably dependent on device screen, tested on moto g4)
      • Drag pixmap size is smaller compared to other platforms

        Attachments

        For Gerrit Dashboard: QTBUG-57863
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            tvete Paul Olav Tvete
            Reporter:
            acidave acidave
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes