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

Nothing draws under a transparent rectangle if border is accessed

    XMLWordPrintable

Details

    Description

      If the border property of a fully transparent rectangle is accessed, the rectangle acts opaque and everything under it in the quick scene renders as transparent.

      If the QWindow has an alphaless render buffer it appears black, if it has a transparent buffer it appears transparent. The bug does not seem to trigger if the border property is accessed after the rectangle is in the scene, but most property accesses will happen before that.

      This bug usually appears when creating reusable components that read border.width and such and want to conditionally turn invisible while keeping children visible.

       

      Attached are a sample that triggers the bug and a video of the same sample.

      Attachments

        1. recording.mp4
          342 kB
          outfoxxed -
        2. qquick_transparent_rect.qml
          0.7 kB
          outfoxxed -
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            outfoxxed outfoxxed -
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes