commonstyle.h
314 Bytes
#ifndef __COMMONSTYLE_H_
#define __COMMONSTYLE_H_
#include <QFile>
#include <QApplication>
class CommonHelper
{
public:
static void setStyle(const QString &style) {
QFile qss(style);
qss.open(QFile::ReadOnly);
qApp->setStyleSheet(qss.readAll());
qss.close();
}
};
#endif