title: adding child in QMainWindow
body: <p>How can i add two child <code>Widget</code> objects in equal portion of <code>QMainWindow</code>.</p>
  
  <pre><code>MainWindow::MainWindow(QWidget *parent)
       : QMainWindow(parent)
  
  {   TreeArea *ta= new TreeArea(this);
      TreeArea *ta1= new TreeArea(this);
  .
  .
  .
    TreeArea::TreeArea(QWidget *parent) :
   QWidget(parent)
  {
  .
  .
  .
  </code></pre>