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

QWidget::setMask has no effect for toplevel QWidget window in macOS

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • 5.15.7, 6.2.1
    • 5.15.6, 6.1.3, 6.2.0 RC
    • GUI: Window management
    • None
    • macOS

    Description

      Attempt to apply mask with QWidget::setMask on frameless toplevel QWidget window has no effect on macOS anymore (worked perfectly with Qt 5.15.2). The window's shape is not affected, and unmasked window's background is opaque. The same approach works on Win PC as expected. Screenshots and sample project enclosed.

       

       

      Attachments

        1. Qt-toplevel.zip
          3 kB
          Cyril Murzin
        2. qwidget-setmask-macos.png
          114 kB
          Cyril Murzin
        3. qwidget-setmask-win.png
          100 kB
          Cyril Murzin
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vestbo Tor Arne Vestbø
            cyril.murzin Cyril Murzin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes