Added gui prototype

This commit is contained in:
2025-12-25 12:13:44 +01:00
parent 20dc535488
commit 0bec8dfeb7
50 changed files with 727 additions and 0 deletions

40
doc/gui_test/main.cpp Normal file
View File

@@ -0,0 +1,40 @@
#include "mainwindow.h"
#include <QApplication>
#include <QApplication>
#include <QMetaEnum>
#include <QFile>
#include <QLabel>
#include <QProgressBar>
// main.cpp
#include <QCoreApplication>
#include <QTimer>
#include <QDebug>
bool setApplicationStyleSheet( QAnyStringView path )
{
QFile styleFile( path.toString() );
if (styleFile.open(QIODevice::ReadOnly | QIODevice::Text))
{
QString style = styleFile.readAll();
qApp->setStyleSheet(style);
styleFile.close();
return true;
}
qWarning() << "Konnte Stylesheet nicht laden:" << styleFile.errorString();
return true;
}
int main (int argc, char *argv[])
{
QApplication a (argc, argv);
setApplicationStyleSheet( u":gui_test.qss" );
MainWindow w;
w.show ();
return a.exec ();
}