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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • 5.6.0 Beta
    • None
    • Linux/X11
    • 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

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