I have a header file where i have:
enum event {UP, DOWN, LEFT, RIGHT, ACTION };
and I have Q_OBJECT class where I want to pass event type "events" as a signal paramater.
class GameView : public QGraphicsView {
Q_OBJECT
public:
GameView(QWidget* parent, GameModel *m);
...
signals:
void sendEvent(event e);
...
};
But when I try to build it, the compiler says
'event' is not a type.
How can i pass the enumerator as a type correctly for the signal?