通过文件定义qss1 将QSS代码写入.qss文件中;(calendar.qss)
QFile file(":/calendar.qss"); file.open(QFile::ReadOnly); QString styleSheet = QLatin1String(file.readAll());
qApp->setStyleSheet(styleSheet); file.close();
posted on 2011-02-24 10:55 seahouse 阅读(1602) 评论(0) 编辑 收藏 引用 所属分类: Qt
Powered by: C++博客 Copyright © seahouse