|
Marvelous 发表于 2014-1-4 07:57
样式表代码发来看看吧~~ - QMainWindow{
- background-image: url(:/image/beijing01.png);
- }
- QPushButton{
- background-color: rgba(100, 225, 100, 30);
- border-style:outset;
- border-width:4px;
- border-radius:10px;
- border-color:rgba(255,255,255,30);
- font:bold 14px;
- color: rgba(0, 0, 0, 100);
- padding:6px;
- }
- QPushButton:hover{
- background-color:rgba(100,255,100,100);
- border-color:rgba(255,255,255,200);
- color:rgba(0,0,0,200);
- }
- QPushButton:pressed{
- background-color:rgba(100,255,100,200);
- border-color:rgba(255,225,255,30);
- border-style:inset;
- color:rgba(0,0,0,100);
- }
- QSlider::handle:horizontal{
- image: url(:/image/sliderHandle.png);
- }
- QSlider::sub-page:horizontal{
- image: url(:/image/slider.png);
- }
复制代码 这就是样式表的代码,是在设计师界面右键单击widget,选择更改样式表的方式写的。谢谢 |
|