QT按键的三态显示不能透明的原因
要将
ui->pushButton->setStyleSheet("QPushButton{border-image: url(:/video/录像白色.png);}"
"QPushButton:hover{border-image: url(:/video/录像浏览.png);}"
"QPushButton:pressed{border-image: url(:/video/录像蓝色.png);}");
中的border-image
改为background-image
ui->pushButton->setStyleSheet("QPushButton{background-image: url(:/video/录像白色.png);}"
"QPushButton:hover{background-image: url(:/video/录像浏览.png);}"
"QPushButton:pressed{background-image: url(:/video/录像蓝色.png);}");