QPushButton{
border-radius:4px /*设置圆角*/
color:white; /*字体颜色*/
border:1px solid rgb(0,0,0) /*边框 none--无边框*/
}
QPushButton:hover{ /*鼠标放在按钮上时样式*/
background-color:rgb(244,67,54);
}
QPushButton:pressed{ /*鼠标按压按钮时样式*/
background-color:rgb(244,67,54);
}
QLabel{
color:white; /*字体颜色*/
}
Qt之Qss样式常用设置
最新推荐文章于 2024-05-10 14:42:44 发布