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

[REG 5.15->6.2] layer.enabled=false hides Item completely

XMLWordPrintable

      This seems to be a regression from 5.15 to 6.2.

      On Qt 6, when setting layer.enabled = false on a Rectangle, the whole Rectangle disappears instead of just the layering being disabled.

      Two projects attached that toggle layer.enabled every 2 seconds:

      • One showing the broken behavior on Qt 6.
      • One showing how it worked on Qt 5.

      This is particularly relevant since the Qt docs advise:

      Layering can be convenient and useful for visual effects, but should in most cases be enabled for the duration of the effect and disabled afterwards.

        1. LayerTest.zip
          2 kB
        2. LayerTest5.zip
          3 kB
        3. Recording Qt 5.mov
          3.20 MB
        4. Recording Qt 6.mov
          3.10 MB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            janichol Andy Nichols
            nikwen Niklas Wenzel
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes