20 lines
348 B
C++
Executable File
20 lines
348 B
C++
Executable File
#include "mainwindow.h"
|
|
|
|
#include <QApplication>
|
|
|
|
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();
|
|
}
|