正常状态:黑底(背景色),白字(前景色),圆角,向外凸起
鼠标停留:背景和前景反色
鼠标按下:背景色变为淡蓝色,向内凹陷

ui->pushButton->setStyleSheet("QPushButton{background-color:black; color: white; border-radius:10px; border:2px groove gray; border-style: outset;}"
"QPushButton:hover{background-color:white; color: black;}"
"QPushButton:pressed{background-color:rgb(85, 170, 255);\
    border-style: inset;}");

相关文章:

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