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++

#include "mainwindow.h"
#include <QApplication>
#include "testdata.h"
#include <QJsonObject>
#include <QJsonDocument>
#include <QFile>
int main(int argc, char **argv)
{
TestData testData;
QJsonObject saveData;
testData.write(saveData);
QJsonDocument saveDoc(saveData);
QFile saveFile("testdata.json");
saveFile.open(QFile::WriteOnly);
saveFile.write(saveDoc.toJson());
saveFile.close();
QApplication app(argc, argv);
MainWindow mainWindow;
mainWindow.show();
return app.exec();
}