I'm trying to resize a background image on a button
btn.setStyleSheet("background-image: url(:/AddButton.png);"
"background-repeat: no-repeat;")
btn.setStyleSheet("background-image: url(:/AddButton.png);"
"background-repeat: no-repeat;")
To copy to clipboard, switch view to plain text mode
tried it with
background-size: 10px auto;
background-size: 10px auto;
To copy to clipboard, switch view to plain text mode
but pyqt seems to be missing this CSS attribute
Is there any other way of scaling the background image on the button? I need the background image as the icon on the button will be used on top.
any suggestions?
Bookmarks