22 lines
424 B
C++
22 lines
424 B
C++
|
#include "mainwindow.h"
|
||
|
|
||
|
#include <QApplication>
|
||
|
#include <QFile>
|
||
|
#include <QTextStream>
|
||
|
|
||
|
int main(int argc, char *argv[])
|
||
|
{
|
||
|
QApplication a(argc, argv);
|
||
|
|
||
|
QFile file(":qdarkstyle/dark/darkstyle.qss");
|
||
|
if (file.open(QFile::ReadOnly)) {
|
||
|
QTextStream stream(&file);
|
||
|
QString styleSheet = stream.readAll();
|
||
|
a.setStyleSheet(styleSheet);
|
||
|
}
|
||
|
|
||
|
MainWindow w;
|
||
|
w.show();
|
||
|
return a.exec();
|
||
|
}
|