title: How do you display a QChartView in a Custom Widget?
body: <p>I have a QChart that I've assigned to a QChartView. In the example I've been following the chart is displayed, in main.cpp, as: </p>
  
  <pre><code>window.setCentralWidget(chartView);
  </code></pre>
  
  <p>In my project I want to utilize the designer and as such have created a custom widget, but it's not displaying the QChart. I found an example where they assigned they assigned the view to a layout and then set the layout, as such:</p>
  
  <pre><code>mainLayout = new QGridLayout;
  mainLayout-&gt;addWidget(chartView, 0, 0);
  setLayout(mainLayout);
  </code></pre>
  
  <p>But this seems to mess with the layout of all the other widgets within the window. How do I get the Custom Widget to display my chartView?</p>
  
  <p>Thank you!</p>