I should be able to see why this is happening, but then again, I'm a newbie.
Compiler says 'actionQuit' was not declared in this scope.
Here is part of the mainwindow.cpp:
Code:
#include <QtGui> #include "mainwindow.h" #include "ui_mainwindow.h" { ui->setupUi(this); setupActions(); statusBar()->addPermanentWidget(mStatLabel); connect(textEdit, SIGNAL(textChanged()), this, SLOT(updateStats())); updateStats(); } void MainWindow::setupActions() { connect(actionQuit, SIGNAL(triggered(bool)), qApp, SLOT(quit()));
I have checked to be sure the menu item is indeed actionQuit.
So what am I missing?