通过Qss设置QPushButton背景透明 QPushButton { background-color: transparent; border:none; } 特别注意: 需要加上border属性才有效