You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
598 B
27 lines
598 B
#include "mainwindow.h"
|
|
|
|
#include <QApplication>
|
|
#include <QFile>
|
|
#include <QTextStream>
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
#if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0))
|
|
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
|
#endif
|
|
QApplication a(argc, argv);
|
|
MainWindow w;
|
|
|
|
QFile f(":/qdarkstyle/dark/style.qss");
|
|
if (!f.exists()) {
|
|
printf("Unable to set stylesheet, file not found\n");
|
|
} else {
|
|
f.open(QFile::ReadOnly | QFile::Text);
|
|
QTextStream ts(&f);
|
|
qApp->setStyleSheet(ts.readAll());
|
|
}
|
|
|
|
w.show();
|
|
return a.exec();
|
|
}
|