Thanks, grin.
The second way is exactly the same I was doing before trying QStackedLayout. I wanted to avoid manual positioning of overlay using layouts, but it seems to be inevitably...