颜色表

十六进制颜色分配表 

 

 

 

 

 

 

 

 

 

 

 

举个栗子:

设置鼠标对按钮的各种行为的颜色,代码如下:

QString button_style="QPushButton{\

                                      color: white;   border-radius: 10px;  border: 2px groove gray;\

                                      border-style: outset;}"

                                     "QPushButton:hover{ color: black;}"

                                    "QPushButton:pressed{170, 255);\

                                                     border-style: inset; }";

ui->pushButton_Save->setStyleSheet(button_style);

猜你喜欢

转载自www.cnblogs.com/Jaime1106/p/Hello_Tomorrow2.html