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

setMask does not work well on retina due to QRegion resolving QRegion::Ellipse to rects without scale factor

    XMLWordPrintable

Details

    Description

      When setting a mask on a top level window it will not display correctly on retina displays. This can be tested using the shapedclock example in qtbase/examples/widgets/widgets, the outline is not smooth, whereas on a non-retina display it is smooth.

      Attachments

        1. image-2019-12-05-16-26-35-737.png
          90 kB
          Tor Arne Vestbø
        2. image-2019-12-05-16-27-08-750.png
          28 kB
          Tor Arne Vestbø
        3. image-2019-12-06-16-20-45-931.png
          90 kB
          Tor Arne Vestbø
        4. rasterwindow_smoothmasked.png
          47 kB
          Eirik Aavitsland
        5. rasterwindow.diff
          2 kB
          Eirik Aavitsland
        6. shapedclock.diff
          1 kB
          Eirik Aavitsland

        Issue Links

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

          Activity

            People

              vestbo Tor Arne Vestbø
              andysh Andy Shaw
              Votes:
              6 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes