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

QML Shape asynchronous z-ordering issue

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.10.0 Beta 3
    • None

    Description

      When Shape contains other QML elements after (asynchronous) ShapePath, it doesn't respect QML z ordering. See attached images.

      Steps to reproduce:
      1) Clone QNanoPainter from https://github.com/QUItCoding/qnanopainter
      2) Enable "asynchronous: true" in qnanopainter_vs_qpainter/qml/shapeitem/FlowerComponent.qml
      3) Run the demo.
      4) From top-right corner settings, enable only "Render flower" test and adjust "Rendering count" to 2.
      5) Switch to "QML Shape" rendering.

      Expected:
      Flower is rendered with white circle on center.

      Actual:
      Flower is rendered with white circle behind it.

      It seems that enabling asynchronous rendering messes up Shape z ordering so that content from ShapePath gets rendered over Rectangle which becomes after that in QML.

      Attachments

        1. flower_actual.png
          flower_actual.png
          357 kB
        2. flower_expected.png
          flower_expected.png
          361 kB

        Issue Links

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

          Activity

            People

              lagocs Laszlo Agocs
              kaipo Kai Grönholm (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes