2013年9月2日

Qt Style Sheets Examples——定制前景色和背景色

摘要: 例子取自:http://qt-project.org/doc/qt-4.8/stylesheet-examples.html以lineEdit为例(1)设置某个lineEdit的背景色为黄色lineEdit->setStyleSheet ("background-color:yellow");(2)设置一个应用项目中所有lineEdit的背景色均为黄色(line 4)1 int main(int argc, char *argv[])2 {3 QApplication a(argc, argv);4 a.setStyleSheet ("QLineEdit { 阅读全文

posted @ 2013-09-02 17:24 铁树银花 阅读(4059) 评论(0) 推荐(0) 编辑

导航