Sat, 12 Feb 2022 21:24:43 +0100
We can fetch a list of suppliers and show it in the wrong window. Still a lot to learn about Qt5
#ifndef _DATABASE_H #define _DATABASE_H #include <QSqlDatabase> #include <QDebug> #include <QSettings> class DataBase : public QObject { Q_OBJECT public: explicit DataBase(QObject *parent = 0); ~DataBase(); bool openDataBase(bool develop); void closeDataBase(); private: QSqlDatabase db; }; static DataBase *db; #endif