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

Issue with WA_NoSystemBackground on MacOS

    XMLWordPrintable

Details

    • macOS

    Description

      Use case is a complex widget that has multiple small details regions that change rapidly. Detail regions need to be repainted without redrawing the complex background.

      Users approach:

      "

      My approach was to define an 'unlikely rectangle' and call update() with this rectangle. In the paint event I compare the QPaintEvent::rect to the unlikely rect to decide whether it's a detail repaint or a full repaint.

      The approach works as expected on Windows and linux, but on MacOS the unlikely rect is always filled with white even though the WA_NoSystemBackground attribute it set.

      Is this a platform limitation?

      "

      Qt Support tested the example on Windows and MacOs and it does behave differently.

      Example project has been attached.

       

      Attachments

        1. MacView.JPG
          MacView.JPG
          12 kB
        2. minpainttestagain.zip
          2 kB
        3. qtbug85250.tar.gz
          3 kB
        4. WinView.JPG
          WinView.JPG
          66 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vestbo Tor Arne Vestbø
            tero.pelkonen Tero Pelkonen
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes