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

macOS: Transparent windows leave permanent outline of initial contents

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • 5.15.14, 6.2.9, 6.5.2
    • Quick: Other
    • macOS Ventura 13.4.1, Xcode 14.3
    • macOS

    Description

      Code

      import QtQuick 2.15
      import QtQuick.Window 2.15
      
      Window {
          width: 300
          height: 300
          visible: true
          color: "transparent"
          flags: Qt.FramelessWindowHint
                 // | Qt.NoDropShadowWindowHint // WORKAROUND
      
          Rectangle {
              id: rectangle
              width: 100
              height: 100
              color: "green"
      
              NumberAnimation on x { to: 200; duration: 2000 }
              NumberAnimation on y { to: 200; duration: 2000 }
          }
      }
      

       

      Outcome
      As the Rectangle moves, an outline remains at its initial position:

       

      Workaround
      Apply Qt.NoDropShadowWindowHint

       

      Notes
      Issue does not affect Windows OS

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vestbo Tor Arne Vestbø
            skoh-qt Sze Howe Koh
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes