QPalette palette;
palette.setBrush(this->backgroundRole(),QBrush(QColor(128,128,128)));
palette.setColor(QPalette::Button, QColor(128,128,128));
palette.setColor(QPalette::WindowText, QColor(230, 230, 230));
this->setPalette(palette);
this->setAutoFillBackground(true);
qt 改变背景色
猜你喜欢
转载自my.oschina.net/hanxiaodong/blog/1633298
今日推荐
周排行