View Single Post
Posts: 198 | Thanked: 76 times | Joined on Mar 2010
#26
Originally Posted by tdesws View Post
mainwindow.h:
Code:
class MainWindow : public QMainWindow {
...
}
#endif // MAINWINDOW_H
you are missing the closing bracket. put one } before #endif

main.cpp:
Code:
#include <QtGui/QApplication>
#include "mainwindow.h"

int main(int argc, char *argv[])
{
...
}
here you got one } to much. remove the last }.

every opening bracket (curly, square, round) has to be closed again.
check your ide's or editor's settings -- almost all should have some kind of visual markers helping you to detect those trivial and easily overlocked syntactical errors.