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

XCB: Drag and drop shaped pixmap window doesn't respect HiDPI scaling

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.6.0 Beta
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Linux/X11
    • Commits:
      Scale mask: 42f788ffe26d67864d569c3a3044619d49fc693a (qtbase/5.6, 10.2.2016, 5.6.1)

      Description

      Drag and drop shaped pixmap window doesn't respect HiDPI scaling, so the the pixmap is e.g. small and clipped.

      Several aspects here:

      • QShapedPixmapWindow is clipped if the DnD pixmap has a mask since QWindow::setMask() does not scale the mask (as opposed to QWidget::setMask()). This is the case for item view DnD (QTBUG-46068) but not for tests/manual/highdpi. To reproduce: Use example from QTBUG-46068 with scaling.
      • QShapedPixmapWindow has the wrong size if the pixmap has a DPR != 1. To reproduce: Apply https://codereview.qt-project.org/#/c/148747/ , drag text with scaling, note white border around DnD window.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              tvete Paul Olav Tvete
              Reporter:
              zaps166 Błażej Szczygieł
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes