Demo2 fixed

This commit is contained in:
Arin Alex 2017-10-05 02:47:45 +03:00
parent 5a185c444d
commit 8061d162dc

View File

@ -4,18 +4,7 @@
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();