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

Page{} interferes with dynamically created Map z-order

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4: Low
    • None
    • 5.9.0 Alpha
    • Quick: Controls 2
    • None

    Description

      Observed behavior: when a dynamically created Map is embedded in a Page{}, the z-order is either completely on top (any z>=0), or completely underneath/invisible (any z<0). This behavior is not observed when the Map is created as part of a statically instantiated Component.

      However, this works normally when the Page{} components are embedded inside an Item{}.

      Expected behavior: the Map should continue to obey z-order values even when dynamically created as a Page{} child.

      Reproducible example: https://github.com/paoletto/LocationXamples/blob/master/MapLayersSwipeView/main.qml

      In this example, the second page shows a map on top of a large red square and beneath a small red square. The first page shows the same (only blue instead of red), but because of the z-order bug the elements must be embedded inside an Item{}.

      ------------
      Special thanks to paangele for assistance in reproducing this bug, as well as the insight that a nested Item{} is a workaround.

      Attachments

        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
            kubark42_ Kenz Dale
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes