This repository has been archived on 2024-12-15. You can view files and clone it, but cannot push or open issues or pull requests.
ESGRAF48/source/LogoTest.cpp

28 lines
498 B
C++
Raw Normal View History

2018-05-10 16:41:14 +00:00
#include "mainwindow.h"
#include <QApplication>
2018-05-10 19:09:34 +00:00
#include "testdata.h"
#include <QJsonObject>
#include <QJsonDocument>
#include <QFile>
2018-05-10 16:41:14 +00:00
int main(int argc, char **argv)
{
2018-05-10 19:09:34 +00:00
TestData testData;
QJsonObject saveData;
testData.write(saveData);
QJsonDocument saveDoc(saveData);
QFile saveFile("testdata.json");
saveFile.open(QFile::WriteOnly);
saveFile.write(saveDoc.toJson());
saveFile.close();
2018-05-10 16:41:14 +00:00
QApplication app(argc, argv);
MainWindow mainWindow;
mainWindow.show();
return app.exec();
}