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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • 5.9.0 Beta 2
    • 5.8.0 RC
    • GUI: Drag and Drop
    • None
    • Android

      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

        1. IMG_0648.JPG
          72 kB
          acidave
        For Gerrit Dashboard: QTBUG-57863
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes