So the code that works is this:
objectdatabase.h
...
class ObjectDatabase{
public:
static bool createTables();
static void closeDatabase();
static bool vacuumDatabase();
protected:
static void setErrorString
(QString);
private:
};
...
...
class ObjectDatabase{
public:
static bool openDatabase(QString);
static bool createTables();
static void closeDatabase();
static bool vacuumDatabase();
static QString errorString();
protected:
static void setErrorString(QString);
private:
static QString m_errorString;
};
...
To copy to clipboard, switch view to plain text mode
objectdatabase.cpp
...
QString ObjectDatabase
::m_errorString;
...
void ObjectDatabase
::setErrorString(QString string
){ m_errorString=string;
}
...
...
QString ObjectDatabase::m_errorString;
...
void ObjectDatabase::setErrorString(QString string){
m_errorString=string;
}
...
To copy to clipboard, switch view to plain text mode
Thanks to all
Bookmarks