1、实现效果

2、QSS代码
#widget {
min-height : 40px;
max-height : 40px;
border : 4px solid white;
border-top-left-radius : 24px;
border-bottom-left-radius : 24px;
padding : 0;
background : #AAA;
}
QPushButton#pushButton {
min-height : 40px;
max-height : 40px;
min-width : 40px;
max-width : 40px;
background : lightblue;
border : 4px solid white;
border-radius : 24px;
}
QPushButton#pushButton:hover {
background : orange;
}
* {
outline : 0px;
}








![[开发|鸿蒙] DevEco Studio编译构建(笔记,持续更新)](https://img-blog.csdnimg.cn/direct/22d732e1f656413485c5f0918ef9b98e.png)









