I have
C:/Users/dimitar/Documents/trebovano-isporacano/mainWindow.h:14: error: ISO C++ forbids declaration of `Q_OBJECT' with no type
C:/Users/dimitar/Documents/trebovano-isporacano/mainWindow.h:14: error: ISO C++ forbids declaration of `Q_OBJECT' with no type
To copy to clipboard, switch view to plain text mode
The code is :
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#incluse <QMainWindow>
{ Q_OBJECT
public:
MainWindow();
protected:
}
#endif // MAINWINDOW_H
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#incluse <QMainWindow>
class mainWindow : public QMainWindow
{ Q_OBJECT
public:
MainWindow();
protected:
void closeEvent(QCloseEvent *event);
}
#endif // MAINWINDOW_H
To copy to clipboard, switch view to plain text mode
Whats the problem?
just found out i wrote incluse instead of include . nvm delete the topic *
Bookmarks