OKbutton->setStyleSheet(
"QPushButton {background-color:#E5E5E5;border-radius:8px;border: 1px solid rgba(128, 128, 128, 1);color:rgb(56, 56, 56);font-size:14px;}"
"QPushButton:hover {background-color: #D1D1D1;}"
"QPushButton:pressed {background-color: #BFBFBF;}"
"QPushButton:disabled {color:#B8B8B8;border: 1px solid #B3B3B3;}"
);
Clbutton->setStyleSheet(
"QPushButton {background-color:#E5E5E5;border-radius:8px;border: 1px solid rgba(128, 128, 128, 1);color:rgb(56, 56, 56);font-size:14px;}"
"QPushButton:hover {background-color: #D1D1D1;}"
"QPushButton:pressed {background-color: #BFBFBF;}"
"QPushButton:disabled {color:#B8B8B8;border: 1px solid #B3B3B3;}"
);
标签:qpushbutton,128,取消,56,background,color,QPushButton,类型,border
From: https://www.cnblogs.com/donghao99/p/18220070