There is a class:
#include <QObject> #include <QUdpSocket> class MyUDP : public QObject { Q_OBJECT public: explicit MyUDP(QObject *parent = 0); public slots: void read(); private: QUdpSocket *socket; }; But the compiler produces an error:
error: 'slots' does not name a type
What could be the reason?
slotsredefined as a variable or something else. - user194374