-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
25 lines (20 loc) · 707 Bytes
/
Copy pathmain.cpp
File metadata and controls
25 lines (20 loc) · 707 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include "newproject.h"
#include <QApplication>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
//////////////////////////////////////////主题///////////////////////////////
// QString path = QDir::currentPath();//获取当前运行路径
// path.replace("/","\\");
// path.append("\\image\\blue.css");
QString path=":/image/blue.css";
QFile file(path);
file.open(QFile::ReadOnly);
QString qss = QLatin1String(file.readAll());
qApp->setStyleSheet(qss);
qApp->setPalette(QPalette(QColor("#F0F0F0")));
/////////////////////////////////////////////////////////////////////////////////
newProject w;
w.show();
return a.exec();
}