I am setting image (25x25 original size) on a QPushButton like this:icon =
QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap("pause.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.pushButton = QtGui.QPushButton()
self.pushButton.setIcon(icon)
also tried this:
self.pushButton.setIcon(QtGui.QIcon("pause.png"))
also "/pause.png"
and nothing works. Im sure ive tried several more things i saw online and in all it compiles but there is no image on the button. Tried setting imagesize like this:
self.pushButton.setIconSize(QSize(24, 24))
and there is no change. Using pycharm + qt5.7