29 lines
438 B
C++
29 lines
438 B
C++
#include "cmainwindow.h"
|
|
#include <QApplication>
|
|
|
|
#include <QFile>
|
|
#include <QTextStream>
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
QApplication a(argc, argv);
|
|
|
|
QFile f(":qdarkstyle/style.qss");
|
|
if (!f.exists())
|
|
{
|
|
printf("Unable to set stylesheet, file not found\n");
|
|
}
|
|
else
|
|
{
|
|
f.open(QFile::ReadOnly | QFile::Text);
|
|
QTextStream ts(&f);
|
|
a.setStyleSheet(ts.readAll());
|
|
}
|
|
|
|
cMainWindow w;
|
|
w.showMaximized();
|
|
|
|
return a.exec();
|
|
}
|