Unsolved QPushButton.setStyleSheet("border:none;")
-
The QPushButton.Icon padding is too big, and the white bakcgournd gray border is too ugly.
If QPushButton.setStyleSheet("border:none;"), the press down gray background will disappear. -
Hi
You can change it
http://doc.qt.io/qt-5/stylesheet-reference.html
http://doc.qt.io/qt-5/stylesheet-customizing.html#box-model
Also the icon size set the size of the icon. ( but NOT bigger than the actual bitmap)
And yes, when you style a button, it will NOT draw as normally for the rest.
You must define full style for it.
Which means set a color for the pressed state if you still want that.QPushButton:pressed { background-color: rgb(118, 170, 50); }