I have the following widget:
pixmap = QtGui.QPixmap(r'pics\cdaudio.png').scaled(100, 100)
The image is scaled down, from 256x256. It looks pretty choppy:
How can I scale it smoothly from within Qt?
Use the transformMode
parameter:
pixmap = QtGui.QPixmap(r'pics\cdaudio.png').scaled(100, 100, transformMode=QtCore.Qt.SmoothTransformation)