1.QPushButton要做出几选一的样式要勾选qt样式表2.属性值里的flat打上对勾会取消背景颜色,但运行时点击会出现背景颜色,可在样式表中添加
QPushButton{
border:none;
}
可永久取消背景颜色
3.增加下划线
#QPushButton#Phone::checked{
border-bottom:2px solid #98FB98;
}
checked表示选中时才会出现下划线。

QStackedWidget#pageAccountLogin,QStackedWidget#pagePhoneLogin{
background:transparent;
}
QStackWidget#stackedWidget{
background:transparent;
}
设置堆栈透明

相关文章:

  • 2021-08-01
  • 2021-11-29
  • 2021-09-24
  • 2021-08-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-10
猜你喜欢
  • 2021-09-13
  • 2021-10-30
  • 2022-12-23
  • 2021-08-10
  • 2022-12-23
  • 2022-12-23
  • 2021-07-30
相关资源
相似解决方案