I am making a project for a school project, and im getting this error
error: ISO C++ forbids declaration of ‘mainScreenDLG’ with no type
error: ISO C++ forbids declaration of ‘mainScreenDLG’ with no type
To copy to clipboard, switch view to plain text mode
from my code
#ifndef __MAIN_H__
#define __MAIN_H__
#include <QMainWindow>
#include <QApplication>
#include <QPushButton>
#include <cstdlib>
#include "ui_menuScreen.h"
// connects the code to the UI
class mathsGame
: public :: QDialog,
private Ui
::mainScreenDLG {
Q_OBJECT
public:
// makes a new instance of the main dialog
mainScreenDLG
(QDialog *parent
= 0);
}
#endif
#ifndef __MAIN_H__
#define __MAIN_H__
#include <QMainWindow>
#include <QApplication>
#include <QPushButton>
#include <cstdlib>
#include "ui_menuScreen.h"
// connects the code to the UI
class mathsGame : public :: QDialog, private Ui::mainScreenDLG
{
Q_OBJECT
public:
// makes a new instance of the main dialog
mainScreenDLG(QDialog *parent = 0);
}
#endif
To copy to clipboard, switch view to plain text mode
Bookmarks