title: Change the UI at run time using C++ only ( No QML )
body: <p>I have screen 1 on which there is a SUBMIT button. On click of the submit button I want to load another screen 2. the UI of screen 2 is developed using only Qt C++. there is no QML document related to that.</p>
  
  <p>On the click of the submit button I have called a function <code>void DoSubmit()</code>. In this function I have made a page object.</p>
  
  <pre><code>Page * PageObj = new Page();
  </code></pre>
  
  <p>In this <code>PageObj</code> I have added containers and other controls and constructed my UI for scene 2, now I try to set this page as my current scene using the following command:</p>
  
  <pre><code>Application :: instance()-&gt;setScene( PageObj );
  </code></pre>
  
  <p>by doing so my app getting crashed but when I remove the statement containing <code>Application :: instance()-&gt;setScene( PageObj )</code> it does not crash.</p>
  
  <p>What is the problem in this I am not able to figure out. Please help..</p>