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. qwidget-setmask-macos.png
          qwidget-setmask-macos.png
          114 kB
        2. qwidget-setmask-win.png
          qwidget-setmask-win.png
          100 kB
        3. Qt-toplevel.zip
          3 kB

        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: