title: How can I programmatically add a QGraphicsView inside a QMainWindow?
body: <p>I would like to add a QGraphicsView(a sub class of it called Menu) inside a QMainWindow programmatically (using code).</p>
  
  <p>In fact I already do that but the problem is the embedded QGraphicsView is not showed. </p>
  
  <p>Here is the code I used inside QMainWindow::init()</p>
  
  <pre><code>menuView=new Menu(this);
  menuView-&gt;show();
  </code></pre>
  
  <p>I already create the scene and insert items inside the Menu class.</p>
  
  <p>What's wrong?</p>