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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.9.0 Beta 2
    • 5.8.0 RC
    • GUI: Drag and Drop
    • None
    • 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

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

        Activity

          People

            tvete Paul Olav Tvete
            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