SimCenterCommon
Common functionality used within different SimCenter projects
mainCommon.cpp
Go to the documentation of this file.
1 #include "mainwindow.h"
2 #include <QApplication>
3 #include <QFile>
4 #include <QDebug>
5 
6 int main(int argc, char *argv[])
7 {
8  QApplication a(argc, argv);
9  MainWindow w;
10  w.show();
11 
12  QFile file(":/style.qss");
13  if(file.open(QFile::ReadOnly)) {
14  QString styleSheet = QLatin1String(file.readAll());
15  a.setStyleSheet(styleSheet);
16  }
17 
18 
19  return a.exec();
20 }
int main(int argc, char *argv[])
Definition: mainCommon.cpp:6