QGroupBox
{
border: 3px solid red;
border-radius: 15px;
}
QGroupBox#groupBoxBtns
{
border: 3px solid green;
border-radius: 5px ;
}
QPushButton
{
border: 3px solid black;
border-radius: 7px ;
}
QPushButton:hover
{
border: 3px solid blue;
border-radius: 7px ;
background-color:#50C878;
}
QPushButton:pressed
{
border: 3px solid black;
border-radius: 7px ;
background-color:#00C878;
}
QLabel
{
border: 3px solid orange;
border-radius: 7px ;
background-color:#d2d2d2;
}
可实现圆角边框,鼠标点击按钮有动态变化过程。
标签:3px,7px,Qt,solid,styleSheet,radius,background,ui,border From: https://www.cnblogs.com/pclx/p/17919966.html