The following qml snippet with QtWebAssembly causes items to be painted with the wrong Z order
In particular "bkg" red rectangle is painted above its children green rectangle.
This can be seen by clicking the window and making the "bkg" rectangle slightly transparent.
The red rectangle is painted under the green rectangle as shown in this pic (obtained by compiling with Qt 5.15.5 x64
Current wrong behaviour
The red rectangle is painted above its children rectangle in Qt 5.15.5 WASM as shown in this picture
and confirmed by making the red rectangle slightly transparent
Steps to reproduce and notes
- You can reproduce the problem also by using the attached project zip file with the portale website https://qt-webassembly.io/designviewer/
- You can reproduce using standard Qt 5.15.5 WebAssembly with emsdk-1.39.8 sdk