QFile file(Qapplication::applicationDirPath()+"styleSheet.qss");
if(file.open(QFile::ReadOnly))
{
QString str =QString(file.readAll());
qApp->setStyleSheet(str);
file.close();
}
else
{
file.close();
QMessage::warning(NULL,QString::fromlocal8Bit("警告"),QString::fromlocal8Bit("样式表文件不存在"));
}