mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2024-12-23 20:22:58 +03:00
24 lines
471 B
C++
24 lines
471 B
C++
#include "mainwindow.h"
|
|
#include <QApplication>
|
|
|
|
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());
|
|
//a.setStyleSheet("");
|
|
}
|
|
MainWindow w;
|
|
w.show();
|
|
|
|
return a.exec();
|
|
}
|