https://blog.csdn.net/qq21497936/article/details/79401577
按鈕的格式
/所有按鈕的樣式/
QPushButton
{
/* 前景色 */
color:red;
/* 背景色 */
background-color:rgb(30,75,10);
/* 邊框風(fēng)格 */
border-style:outset;
/* 邊框?qū)挾?*/
border-width:2px;
/* 邊框顏色 */
border-color:rgb(10,45,110);
/* 邊框倒角 */
border-radius:10px;
/* 字體 */
font:bold 14px;
/* 控件最小寬度 */
min-width:100px;
/* 控件最小高度 */
min-height:20px;
/* 內(nèi)邊距 */
padding:4px;
}
/懸停時(shí)按鈕/
QPushButton:hover
{
background-color:rgb(0,0,250);
}
QPushButton:pressed
{
border-style:inside;
background-color:rgb(250,0,0);
}