I am making a project for a school project, and im getting this error

Qt Code:
  1. error: ISO C++ forbids declaration of ‘mainScreenDLG’ with no type
To copy to clipboard, switch view to plain text mode 
from my code

Qt Code:
  1. #ifndef __MAIN_H__
  2. #define __MAIN_H__
  3. #include <QMainWindow>
  4. #include <QApplication>
  5. #include <QPushButton>
  6. #include <cstdlib>
  7. #include "ui_menuScreen.h"
  8.  
  9.  
  10. // connects the code to the UI
  11. class mathsGame : public :: QDialog, private Ui::mainScreenDLG
  12. {
  13. Q_OBJECT
  14.  
  15. public:
  16. // makes a new instance of the main dialog
  17. mainScreenDLG(QDialog *parent = 0);
  18.  
  19.  
  20.  
  21. }
  22.  
  23.  
  24. #endif
To copy to clipboard, switch view to plain text mode