Ok positive_4_life. I have changed the code to this:
#ifndef CONTROLDB_H
#define CONTROLDB_H
#include <QString>
{
Q_OBJECT
public:
ControlDB();
void makeControlDB();
//signals:
//void valueChanged(QString);
};
#endif // CONTROLDB_H
#ifndef CONTROLDB_H
#define CONTROLDB_H
#include <QString>
class ControlDB:public QObject
{
Q_OBJECT
public:
ControlDB();
void makeControlDB();
void setLastLog(QString);
void setOper(QString);
QString getLastLog();
QString getOper();
//signals:
//void valueChanged(QString);
};
#endif // CONTROLDB_H
To copy to clipboard, switch view to plain text mode
Now I still get this error:
controldb.h:7: error: expected class-name before '{' token
I can't see anything wrong with it.
Bookmarks