Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to delete/remove screen/page from the display in QML?
    primarykey
    data
    text
    <p>I have one <code>Loader</code> using which I am loading the multiple screen/pages.</p> <p>I have around 10 QML screen/pages which I am loading in the loader one by one on mouse events.</p> <p>On some of the screens I need to set transparency using <code>QWidget::setMask()</code> function to make some part of the screen/page make transparent and Punch hole the screen.</p> <p>I am doing set mask from CPP code using <code>QWidget::setMask()</code> on the <code>rootObject</code>, which is <code>Loader</code> screen.</p> <p><code>QWidget::setMask</code> is working perfectly, but masked area displays previously loaded screen/page.</p> <p>So I have the question, Is <code>Loader</code> element properly deletes/removes the loaded component from the display before loading the new screen/page in the <code>Loader</code>, as mentioned in documents <a href="http://doc.qt.nokia.com/4.7-snapshot/qml-loader.html" rel="nofollow">http://doc.qt.nokia.com/4.7-snapshot/qml-loader.html</a>.</p> <p>Also there are two function named <code>Component.onDestroyed</code> and <code>Component.onDestruction</code></p> <p>When I load new screen/page in the Loader <code>onDestruction</code> event is getting fired for the Loaded screen.</p> <p>I want to completely remove/destroy the screen/page from the display once we load new page in the loader. I have also tried to set the visibility and opacity of the previously loaded screen, but still I am able to see the Previously loaded screen/page in the masked area.</p> <p>If I set loader's <code>source = ""</code> and <code>sourceComponent = undefined</code> then also I can see the previous loaded page in Loader, it is not refreshing the screen. The previous page is destroyed but it is not cleared/removed from the display.</p> <p>What should be the reason?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload