You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
443 B
23 lines
443 B
#include "widget.h"
|
|
#include <QApplication>
|
|
#include <QFile>
|
|
#include <QTextStream>
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
QApplication app(argc, argv);
|
|
|
|
QFile file(":/res/qss/style-1.qss");/*QSS文件所在的路径*/
|
|
|
|
file.open(QFile::ReadOnly);
|
|
QTextStream filetext(&file);
|
|
QString stylesheet = filetext.readAll();
|
|
app.setStyleSheet(stylesheet);
|
|
file.close();
|
|
|
|
Widget w;
|
|
w.show();
|
|
|
|
return app.exec();
|
|
}
|