title: Creating a 10x10 field of pushButtons
body: <p>Hey I want to create a 8x8 field of pushButtons. When using this Code</p>
  
  <pre><code>#include "mainwindow.h"
  #include "ui_mainwindow.h"
  #include &lt;QVector&gt;
  
  MainWindow::MainWindow(QWidget *parent)
      : QMainWindow(parent)
      , ui(new Ui::MainWindow)
  {
      ui-&gt;setupUi(this);
  }
  
  MainWindow::~MainWindow()
  {
      delete ui;
  }
  
  QGridLayout* layout = new QGridLayout();
  ui-&gt;centralwidget-&gt;setLayout(layout);
  
  QVector&lt;QVector&lt;QPushButton*&gt;&gt; buttons2DVector(8);
  
  for (int i=0;i&lt;8;i++){
      buttons2DVector[i].resize(8);
  
      for(int j=0;j&lt;8;j++){
          QPushButton *b = new QPushButton("button");
          layout-&gt;addWidget(b,i,j);
          buttons2DVector[i][j] = b;
      }
  }
  </code></pre>
  
  <p>the error is:
  unknown type Name "QGridLayout"
  unknown type Name "ui"</p>
  
  <p>the Code was given to me but I dont know how to use it properly. As you can probably see I am a beginner in QT and C++ but it would be nice if someone could help me.</p>