Python Forum

Full Version: pushbutton with image
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi all,

is there possible to make Qpushbutton with logo/pic like below?
https://ibb.co/k2fRLFn
Yup you can.

button = QPushButton(win)
button.setIcon(QtGui.QIcon('myImage.jpg'))
I copied the code from here, as reference.