#include "mainwindow.h"
#include "ui_mainwindow.h"

QAction *newAct;


MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);

newAct = new QAction(tr("&New"), this);
newAct->setShortcut(tr("Ctrl+N"));
newAct->setStatusTip(tr("Create a new file"));
connect(newAct, SIGNAL(triggered()), this, SLOT(newFile()));


fileMenu = menuBar()->addMenu(tr("&File"));
fileMenu->addAction(newAct);
}

MainWindow::~MainWindow()
{
delete ui;
}
Give me a error: 'fileMenu' was not declared in the scope. What is type of "filemenu"?